コード例 #1
0
 protected override void Init()
 {
     //start pipelining
     base.Init();
     //queue multi command
     RedisClient.Multi();
     //set transaction
     RedisClient.Transaction = this;
 }
コード例 #2
0
		public RedisTransaction(RedisClient redisClient)
		{
			this.redisClient = redisClient;

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

			redisClient.Multi();
			redisClient.CurrentTransaction = this;
		}
コード例 #3
0
        public RedisTransaction(RedisClient redisClient)
        {
            this.redisClient = redisClient;

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

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