示例#1
0
 public void Remove(string key)
 {
     CacheContext.Remove(key);
 }
示例#2
0
 /// <summary>
 /// 移除一个缓存项
 /// </summary>
 /// <param name="key">缓存项key</param>
 /// <returns>true成功,false失败</returns>
 public bool RemoveCache(string key)
 {
     return(CacheContext.Remove <T>(key));
 }