C# Класс Castle.MonoRail.Framework.Test.MockCacheProvider

Represents a mock implementation of ICacheProvider for unit test purposes.
Наследование: ICacheProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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