예제 #1
0
        public RedisTypedTransaction(RedisTypedClient <T> redisClient)
        {
            this.redisClient = redisClient;

            if (redisClient.CurrentTransaction != null)
            {
                throw new InvalidOperationException("An atomic command is already in use");
            }

            redisClient.CurrentTransaction = this;
            redisClient.Multi();
        }