C# Class newtelligence.DasBlog.Web.Core.HttpCache

Wrapper for the HostingEnvironment.Cache.
Inheritance: DataCache
Mostrar archivo Open project: AArnott/dasblog

Public Methods

Method Description
Clear ( ) : void

Clears all entries from the cache.

Insert ( string key, object value, System.Web.Caching.CacheDependency dependencies ) : void

Inserts an object in the Cache, overrides an existing object with the same key.

Insert ( string key, object value, CacheItemPriority priority ) : void

Inserts an object in the Cache, overrides an existing object with the same key.

Insert ( string key, object value, System.DateTime absoluteExpiration ) : void

Inserts an object in the Cache, overrides an existing object with the same key.

Insert ( string key, object value, System.TimeSpan slidingExpiration ) : void

Inserts an object in the Cache, overrides an existing object with the same key.

Remove ( string key ) : object

Removes an object from the cache.

this ( string key ) : object

Gets the object specified by the key from the cache.

Private Methods

Method Description
HttpCache ( ) : System

Creates a new instance of the HttpCache class.

Method Details

Clear() public method

Clears all entries from the cache.
public Clear ( ) : void
return void

Insert() public method

Inserts an object in the Cache, overrides an existing object with the same key.
public Insert ( string key, object value, System.Web.Caching.CacheDependency dependencies ) : void
key string
value object
dependencies System.Web.Caching.CacheDependency
return void

Insert() public method

Inserts an object in the Cache, overrides an existing object with the same key.
public Insert ( string key, object value, CacheItemPriority priority ) : void
key string
value object
priority CacheItemPriority
return void

Insert() public method

Inserts an object in the Cache, overrides an existing object with the same key.
public Insert ( string key, object value, System.DateTime absoluteExpiration ) : void
key string
value object
absoluteExpiration System.DateTime
return void

Insert() public method

Inserts an object in the Cache, overrides an existing object with the same key.
public Insert ( string key, object value, System.TimeSpan slidingExpiration ) : void
key string
value object
slidingExpiration System.TimeSpan
return void

Remove() public method

Removes an object from the cache.
public Remove ( string key ) : object
key string
return object

this() public method

Gets the object specified by the key from the cache.
public this ( string key ) : object
key string
return object