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>(); }
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]; }
public ITypedRedisClientFacadeAsync <T> AsAsync <T>() { return(new RedisITypedRedisClientFacadeAsync <T>(redisClient.As <T>())); }