Esempio n. 1
0
        public bool containsKey(string key)
        {
            var cacheObj = HttpRuntimeCache.Get($"{Default_Cache_Prefix}{key}");

            if (cacheObj != null)
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public string get(string key)
        {
            var cacheObj = HttpRuntimeCache.Get($"{Default_Cache_Prefix}{key}");

            if (cacheObj != null)
            {
                return(Convert.ToString(cacheObj));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 3
0
 public void cache(string key, string value, long timeout)
 {
     HttpRuntimeCache.Set($"{Default_Cache_Prefix}{key}", value, timeout);
 }
Esempio n. 4
0
 public void Cache(string key, string value)
 {
     HttpRuntimeCache.Set($"{Default_Cache_Prefix}{key}", value);
 }