Пример #1
0
 /// <summary>
 /// 为数字减少val
 /// </summary>
 /// <param name="key"></param>
 /// <param name="dataKey"></param>
 /// <param name="val">可以为负</param>
 /// <returns>减少后的值</returns>
 public async Task <long> HashDecrementAsync(string key, string dataKey, long val = 1)
 {
     return(await QuickHelperBase.HashIncrementAsync(key, dataKey, 0 - val));
 }
Пример #2
0
 /// <summary>
 /// 为数字增长val
 /// </summary>
 /// <param name="key"></param>
 /// <param name="dataKey"></param>
 /// <param name="val">可以为负</param>
 /// <returns>增长后的值</returns>
 public Task <long> HashIncrementAsync(string key, string dataKey, long val = 1)
 {
     return(QuickHelperBase.HashIncrementAsync(key, dataKey, val));
 }