public T Get <T>(string key) { if (SysnetApplicationPool.S_HasKey(key)) { return(SysnetApplicationPool.S_Get <T>(key)); } else { return(SysnetCachePool.S_Get <T>(key)); } }
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); } }
public void Clear() { SysnetApplicationPool.S_Clear(); SysnetCachePool.S_Clear(); }
public void Remove(string key) { SysnetCachePool.S_Remove(key); SysnetApplicationPool.S_Remove(key); }
public bool HasKey(string key) { return(!SysnetApplicationPool.S_HasKey(key) ? SysnetCachePool.S_HasKey(key) : true); }
public dynamic Get(string key) { return(SysnetApplicationPool.S_Get(key) ?? SysnetCachePool.S_Get(key)); }