Пример #1
0
 public T Get <T>(string key)
 {
     if (SysnetApplicationPool.S_HasKey(key))
     {
         return(SysnetApplicationPool.S_Get <T>(key));
     }
     else
     {
         return(SysnetCachePool.S_Get <T>(key));
     }
 }
Пример #2
0
 public void Set <T>(string key, T value, int ss = 0)
 {
     if (ss == 0)
     {
         ss = cachedefaults;
     }
     Remove(key);
     if (ss < 0)
     {
         SysnetApplicationPool.S_Set <T>(key, value);
     }
     if (ss > 0)
     {
         SysnetCachePool.S_Set <T>(key, value, ss);
     }
 }
Пример #3
0
 public void Clear()
 {
     SysnetApplicationPool.S_Clear();
     SysnetCachePool.S_Clear();
 }
Пример #4
0
 public void Remove(string key)
 {
     SysnetCachePool.S_Remove(key);
     SysnetApplicationPool.S_Remove(key);
 }
Пример #5
0
 public bool HasKey(string key)
 {
     return(!SysnetApplicationPool.S_HasKey(key) ? SysnetCachePool.S_HasKey(key) : true);
 }
Пример #6
0
 public dynamic Get(string key)
 {
     return(SysnetApplicationPool.S_Get(key) ?? SysnetCachePool.S_Get(key));
 }