C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
H3Caching ( ) : System

Описание методов

Cache() публичный статический Метод

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
Результат void

Cache() публичный статический Метод

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.
Результат void

Cache() публичный статический Метод

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.
Результат void

Cache() публичный статический Метод

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
Результат void

Cache() публичный статический Метод

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.
Результат void

Cache() публичный статический Метод

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.
Результат void

CacheClear() публичный статический Метод

Clear the output cache.
public static CacheClear ( ) : void
Результат void

CacheValid() публичный статический Метод

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
Результат bool