public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost).ForAsyncOnly();
            await client.FlushAllAsync();

            redis = client.As <T>();
        }
Exemplo n.º 2
0
        public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost);
            await client.FlushAllAsync();

            redis = client.As <T>();

            Hash = redis.GetHash <string>(HashId);
        }
        public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost);
            await client.FlushAllAsync();

            redis = client.As <CustomType>();

            List = redis.Lists[ListId];
            // List2 = redis.Lists[ListId2];
        }