Exemple #1
0
        public async Task RemoveAsync(string key, CancellationToken token = default(CancellationToken))
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            await _redisClient.DelAsync(key.Split('|'));

            // TODO: Error handling
        }
 /// <summary>
 /// 清除名单缓存
 /// </summary>
 /// <returns></returns>
 public async Task ClearRosterListCacheAsync(RosterType rosterType, string api, Policy policy, string policyKey)
 {
     var key = FromatRosterKey(rosterType, api, policy, policyKey);
     await _db.DelAsync(key);
 }