示例#1
0
 public object this[string key]
 {
     get
     {
         return(PersistableCacheHelper.Get(key));
     }
     set
     {
         PersistableCacheHelper.Add(key, value, DefaultCacheTime);
     }
 }
示例#2
0
 public void Add(string key, object value, TimeSpan cacheTime)
 {
     PersistableCacheHelper.Add(key, value, cacheTime);
 }
示例#3
0
 public void Add(string key, object value)
 {
     PersistableCacheHelper.Add(key, value, DefaultCacheTime);
 }