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

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

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

Services the specified provider.

Store ( string key, object data ) : void

Stores the cache item by the specified key.

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

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