/// <summary> /// 删除缓存 /// </summary> public static void Remove(string cacheType, string key) { if (string.Compare(cacheType, CacheType.Web, true) == 0) { BaseCache.Remove(key); } else if (string.Compare(cacheType, CacheType.Redis, true) == 0) { IRedis.RemoveAsy(key); } }
/// <summary> /// 删除缓存 /// </summary> public static void Remove(string cacheType, string key) { if (cacheType.ToLower() == CacheType.Web) { BaseCache.Remove(key); } else if (cacheType.ToLower() == CacheType.Redis) { IRedis.RemoveAsy(key); } }