示例#1
0
 public void Delete(AsyncCallback <object> callback)
 {
     Cache.GetInstance().Delete(key, callback);
 }
示例#2
0
 public void Delete()
 {
     Cache.GetInstance().Delete(key);
 }
示例#3
0
 public void ExpireAt(int seconds, AsyncCallback <object> callback)
 {
     Cache.GetInstance().ExpireAt(key, seconds, callback);
 }
示例#4
0
 public void ExpireAt(int seconds)
 {
     Cache.GetInstance().ExpireAt(key, seconds);
 }
示例#5
0
 public void Contains(AsyncCallback <bool> callback)
 {
     Cache.GetInstance().Contains(key, callback);
 }
示例#6
0
 public bool Contains()
 {
     return(Cache.GetInstance().Contains(key));
 }
示例#7
0
 public T Get()
 {
     return((T)Cache.GetInstance().Get <T>(key));
 }
示例#8
0
 public void Get(AsyncCallback <T> callback)
 {
     Cache.GetInstance().Get(key, callback);
 }
示例#9
0
 public void Put(T value, int expire)
 {
     Cache.GetInstance().Put(key, value, expire);
 }
示例#10
0
 public void Put(T value)
 {
     Cache.GetInstance().Put(key, value);
 }
示例#11
0
 public void Put(T value, int expire, AsyncCallback <object> callback)
 {
     Cache.GetInstance().Put(key, value, expire, callback);
 }