Exemple #1
0
 public object this[string key]
 {
     get
     {
         return(PersistableCacheHelper.Get(key));
     }
     set
     {
         PersistableCacheHelper.Add(key, value, DefaultCacheTime);
     }
 }
Exemple #2
0
 public void RemoveAll()
 {
     PersistableCacheHelper.Clear();
 }
Exemple #3
0
 public void Remove(string key)
 {
     PersistableCacheHelper.Remove(key);
 }
Exemple #4
0
 public void GetAsync <T>(string key, Action <T> callback)
 {
     PersistableCacheHelper.GetAsync(key, callback);
 }
Exemple #5
0
 public T Get <T>(string key)
 {
     return(PersistableCacheHelper.Get <T>(key));
 }
Exemple #6
0
 public object Get(string key)
 {
     return(PersistableCacheHelper.Get(key));
 }
Exemple #7
0
 public void AddAsync(string key, TimeSpan cacheTime, Action <string, Action <object> > getDataAction)
 {
     PersistableCacheHelper.AddAsyncAction(key, cacheTime, getDataAction);
 }
Exemple #8
0
 public void Add(string key, object value, TimeSpan cacheTime)
 {
     PersistableCacheHelper.Add(key, value, cacheTime);
 }
Exemple #9
0
 public void Add(string key, object value)
 {
     PersistableCacheHelper.Add(key, value, DefaultCacheTime);
 }