public RedisUnitOfWork(RedisDataContext context) { _disposedLists = false; _client = context.Client(); _typedClient = _client.As <TEntity>(); string type = typeof(TEntity).ToString(); _storeKey = RedisUtils.GetListKey(type, RedisOperation.Save); _removeKey = RedisUtils.GetListKey(type, RedisOperation.Delete); }
public RedisRepository(RedisDataContext context) { _client = context.Client(); _typedClient = _client.As <TEntity>(); _type = typeof(TEntity).ToString(); }