C# 클래스 Castle.MonoRail.Framework.Test.MockCacheProvider

Represents a mock implementation of ICacheProvider for unit test purposes.
상속: ICacheProvider
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Delete() 공개 메소드

Deletes the cache item by the specified key.
public Delete ( string key ) : void
key string The key.
리턴 void

Get() 공개 메소드

Gets the cache item by the specified key.
public Get ( string key ) : object
key string The key.
리턴 object

HasKey() 공개 메소드

Determines whether the specified key is on the cache.
public HasKey ( string key ) : bool
key string The key.
리턴 bool

Service() 공개 메소드

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
리턴 void

Store() 공개 메소드

Stores the cache item by the specified key.
public Store ( string key, object data ) : void
key string The key.
data object The data.
리턴 void