BB.Caching.Cache.Shared.Strings.Increment C# (CSharp) Метод

Increment() публичный статический Метод

Increments the number stored at key by increment. 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/incrby http://redis.io/commands/incr
public static Increment ( RedisKey key, long value = 1 ) : long
key RedisKey /// The key. ///
value long /// The value. ///
Результат long
                public static long Increment(RedisKey key, long value = 1)
                {
                    long result = SharedCache.Instance.GetWriteConnection(key)
                        .GetDatabase(SharedCache.Instance.Db)
                        .StringIncrement(key, value);

                    return result;
                }