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);
}