BB.Caching.Redis.Statistics.SetStatisticAsync C# (CSharp) Method

SetStatisticAsync() public static method

Sets the value at the key for a statistic we're tracking.
public static SetStatisticAsync ( string key, double value ) : System.Threading.Tasks.Task
key string /// The key. ///
value double /// The value. ///
return System.Threading.Tasks.Task
        public static Task SetStatisticAsync(string key, double value)
        {
            RedisKey[] keyArgs = { key };
            RedisValue[] valueArgs = { value };

            return SharedCache.Instance.GetWriteConnection(key)
                .GetDatabase(SharedCache.Instance.Db)
                .ScriptEvaluateAsync(Statistics.SetStatisticHash, keyArgs, valueArgs);
        }