C# Class Argentini.Halide.H3Caching

The H3Caching class contains methods and properties for manipulating the page output cache, as well as other caching and history functionality. Cache time is determined by the "OutputCacheTime" setting in the Halide configuration section of the web.config file. The time is in seconds.
Datei anzeigen Open project: argentini/Halide

Public Methods

Method Description
Cache ( String key, Object value ) : void

Output Caching wrapper method. Caches an object for a number of seconds specified in the web.config file under the Halide Settings key "outputCacheTime".

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

Output Caching wrapper method. Caches an object until the date and time specified.

Cache ( String key, Object value, Int32 expirationSeconds ) : void

Output Caching wrapper method. Caches an object for the number of seconds specified.

Cache ( String key, String value ) : void

Output Caching wrapper method. Caches a string value for a number of seconds specified in the web.config file under the Halide Settings key "outputCacheTime".

Cache ( String key, String value, System.DateTime expirationDateTime ) : void

Output Caching wrapper method. Caches a string value until the date and time specified.

Cache ( String key, String value, Int32 expirationSeconds ) : void

Output Caching wrapper method. Caches a string value for the number of seconds specified.

CacheClear ( ) : void

Clear the output cache.

CacheValid ( String key ) : bool

Output caching wrapper method. Determines if a cached item exists or not.

Private Methods

Method Description
H3Caching ( ) : System

Method Details

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

Cache() public static method

Output Caching wrapper method. Caches an object until the date and time specified.
public static Cache ( String key, Object value, System.DateTime expirationDateTime ) : void
key String Unique name of the cached item
value Object Object to store in the cache
expirationDateTime System.DateTime Expiration date and time.
return void

Cache() public static method

Output Caching wrapper method. Caches an object for the number of seconds specified.
public static Cache ( String key, Object value, Int32 expirationSeconds ) : void
key String Unique name of the cached item
value Object Object to store in the cache
expirationSeconds System.Int32 Expiration time, in seconds, from the current date and time.
return void

Cache() public static method

Output Caching wrapper method. Caches a string value for a number of seconds specified in the web.config file under the Halide Settings key "outputCacheTime".
public static Cache ( String key, String value ) : void
key String Unique name of the cached item
value String String value to store in the cache
return void

Cache() public static method

Output Caching wrapper method. Caches a string value until the date and time specified.
public static Cache ( String key, String value, System.DateTime expirationDateTime ) : void
key String Unique name of the cached item
value String String value to store in the cache
expirationDateTime System.DateTime Expiration date and time.
return void

Cache() public static method

Output Caching wrapper method. Caches a string value for the number of seconds specified.
public static Cache ( String key, String value, Int32 expirationSeconds ) : void
key String Unique name of the cached item
value String String value to store in the cache
expirationSeconds System.Int32 Expiration time, in seconds, from the current date and time.
return void

CacheClear() public static method

Clear the output cache.
public static CacheClear ( ) : void
return void

CacheValid() public static method

Output caching wrapper method. Determines if a cached item exists or not.
public static CacheValid ( String key ) : bool
key String Unique name of the cached item
return bool