protected override void Init() { //start pipelining base.Init(); //queue multi command RedisClient.Multi(); //set transaction RedisClient.Transaction = this; }
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; }
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; }