static void RedisTransactions() { using (IRedisClient client = new RedisClient()) { var transaction = client.CreateTransaction(); transaction.QueueCommand(c => client.Set("abc", 1)); transaction.QueueCommand(c => client.Increment("abc", 1)); transaction.Commit(); var result = client.Get <int>("abc"); Console.WriteLine(result); } }