예제 #1
0
 public void Remove(string key)
 {
     CacheContext.Remove(key);
 }
예제 #2
0
 public bool Create(string key, T val, DateTime expire)
 {
     //设置缓存
     return(CacheContext.Set <T>(key, val, expire));
 }