Argentini.Halide.H3Caching.Cache C# (CSharp) Method

Cache() public static method

Output Caching wrapper method. Caches an object for a number of seconds specified in the web.config file under the Halide Settings key "outputCacheTime".
public static Cache ( String key, Object value ) : void
key String Unique name of the cached item
value Object Object to store in the cache
return void
        public static void Cache(String key, Object value)
        {
            HttpContext.Current.Cache.Add(key, value, null, DateTime.Now.AddSeconds(Convert.ToDouble(OutputCacheTime)), System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.Normal, null);
        }

Same methods

H3Caching::Cache ( String key, Object value, System.DateTime expirationDateTime ) : void
H3Caching::Cache ( String key, Object value, Int32 expirationSeconds ) : void
H3Caching::Cache ( String key, String value ) : void
H3Caching::Cache ( String key, String value, System.DateTime expirationDateTime ) : void
H3Caching::Cache ( String key, String value, Int32 expirationSeconds ) : void