C# Class Castle.MonoRail.Framework.Test.MockCacheProvider

Represents a mock implementation of ICacheProvider for unit test purposes.
Inheritance: ICacheProvider
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

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

Services the specified provider.

Store ( string key, object data ) : void

Stores the cache item by the specified key.

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

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
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