Beispiel #1
0
 public async Task DeleteBasketAsync(string id)
 {
     await _redisManager.DeleteAsync(id);
 }
 public async Task <IActionResult> UpdateConfig(string key)
 {
     return(Ok(await _redisManager.DeleteAsync(key)));
 }
Beispiel #3
0
 /// <summary>
 /// 注销服务实例
 /// </summary>
 /// <param name="serviceDesc">服务描述</param>
 public async Task Deregister(ServiceDescription serviceDesc)
 {
     string key = GetKey(serviceDesc.ServiceName, serviceDesc.Id);
     await _redisManager.DeleteAsync(key).ConfigureAwait(false);
 }
 private Task ClearRedisCache()
 {
     return(_redisManager.DeleteAsync(RedisKeyConsts.Customer));
 }