C# Класс Castle.MonoRail.Framework.Services.DefaultCacheProvider

Simple implementation of ICacheProvider using a Dictionary<string, object> .
Наследование: 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

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.

Приватные методы

Метод Описание
GetCurrentContext ( ) : HttpContext

Gets the current context.

Описание методов

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() публичный Метод

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
Результат 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