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

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

Méthodes publiques

Méthode 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

Méthode Description
GetCurrentContext ( ) : HttpContext

Gets the current context.

Method Details

Delete() public méthode

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

Get() public méthode

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

HasKey() public méthode

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

Service() public méthode

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

Store() public méthode

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