Redis C# - Using Incr value in a transaction
问题 I'm trying use Redis INCR and the incremented value to be used as a field in a Hash from C# using StackExchange.Redis. This question points similar to what I need, but in Node. The below is something like I need. ITransaction transation = m_connection.GetDatabase() .CreateTransaction(); Task<long> incrementTask = transation.StringIncrementAsync(sequenceNumberRedisKey); if (await transation.ExecuteAsync()) { long sequenceNumber = await incrementTask; await transation.HashSetAsync