C# Class Castle.MonoRail.Framework.Services.DefaultCacheProvider

Simple implementation of ICacheProvider using a Dictionary<string, object> .
Inheritance: ICacheProvider
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Delete ( String key ) : void

Deletes the cache item by the specified key.

Get ( String key ) : object

Gets the cache item by the specified key.

HasKey ( String key ) : bool

Determines whether the specified key is on the cache.

Service ( IServiceProvider provider ) : void

Invoked by the framework in order to give a chance to obtain other services

Store ( String key, object data ) : void

Stores the cache item by the specified key.

Private Methods

Method Description
GetCurrentContext ( ) : HttpContext

Gets the current context.

Method Details

Delete() public method

Deletes the cache item by the specified key.
public Delete ( String key ) : void
key String The key.
return void

Get() public method

Gets the cache item by the specified key.
public Get ( String key ) : object
key String The key.
return object

HasKey() public method

Determines whether the specified key is on the cache.
public HasKey ( String key ) : bool
key String The key.
return bool

Service() public method

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
return void

Store() public method

Stores the cache item by the specified key.
public Store ( String key, object data ) : void
key String The key.
data object The data.
return void