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

DecrementAsync() public static method

Decrements the number stored at field in the hash stored at key by Decrement. 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 DecrementAsync ( RedisKey key, RedisValue field, double value ) : Task
key RedisKey /// The key. ///
field RedisValue /// The field. ///
value double /// The amount to decrement by. ///
return Task
                public static Task<double> DecrementAsync(RedisKey key, RedisValue field, double value)
                {
                    Task<double> result = SharedCache.Instance.GetWriteConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .HashDecrementAsync(key, field, value);

                    return result;
                }

Same methods

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