BB.Caching.Cache.Shared.Strings.Decrement C# (CSharp) Method

Decrement() public static method

Decrements the number stored at key by decrement. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains a string that is not representable as integer. This operation is limited to 64 bit signed integers.
http://redis.io/commands/decrby http://redis.io/commands/decr
public static Decrement ( RedisKey key, long value = 1 ) : long
key RedisKey /// The key. ///
value long /// The value. ///
return long
                public static long Decrement(RedisKey key, long value = 1)
                {
                    long result = SharedCache.Instance.GetWriteConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .StringDecrement(key, value);

                    return result;
                }