BB.Caching.Cache.Shared.Hashes.IncrementAsync C# (CSharp) Method

IncrementAsync() public static method

Increments the number stored at field in the hash stored at key by increment. If key does not exist, a new key holding a hash is created. If field does not exist or holds a string that cannot be interpreted as integer, the value is set to 0 before the operation is performed.
The range of values supported by HINCRBY is limited to 64 bit signed integers. http://redis.io/commands/hincrby
public static IncrementAsync ( RedisKey key, RedisValue field, double value ) : Task
key RedisKey /// The key. ///
field RedisValue /// The field. ///
value double /// The amount to increment by. ///
return Task
                public static Task<double> IncrementAsync(RedisKey key, RedisValue field, double value)
                {
                    Task<double> result = SharedCache.Instance.GetWriteConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .HashIncrementAsync(key, field, value);

                    return result;
                }

Same methods

Cache.Shared.Hashes::IncrementAsync ( RedisKey key, RedisValue field, int value = 1 ) : Task