public RedisWriteOnlyTransaction([NotNull] RedisStorage storage) { if (storage == null) { throw new ArgumentNullException(nameof(storage)); } _storage = storage; redisClientPipe = _storage.RedisClient.StartPipe(); }
/// <summary> /// 初始化一个<see cref="RedisWriteOnlyTransaction"/>类型的实例 /// </summary> /// <param name="storage">Redis存储</param> public RedisWriteOnlyTransaction(RedisStorage storage) { _storage = storage ?? throw new ArgumentNullException(nameof(storage)); _redisClientPipe = _storage.RedisClient.StartPipe(); }