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