C# Класс Meek.Caching.CacheFactory

Meek Default Cache Factory
Наследование: ICacheFactory, IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CacheFactory System
GetCacheFactory ICacheFactory
NewCache ICache

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

Метод Описание
AddVariable ( string key, string value ) : void

Adds an instance variable to the Factory

Dispose ( ) : void

Disposes the CacheFactory Instance

GetCache ( string cacheName ) : ICache

Creates or Gets a Cache Instance

GetFactory ( string name ) : ICacheFactory

Returns an instance of a named CacheFactory

RemoveCache ( string cacheName ) : void

Removes a Cache in the factory specified by the cache name

SetCacheFactoryConfiguration ( CacheFactoryConfigurationSection configuration ) : void

Sets the configuration of the CacheFactories

SetDefaultCacheFactory ( ICacheFactory cacheFactory ) : void

Sets the Default CacheFactory Instance

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Triggered on instance dipose

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

Метод Описание
CacheFactory ( ) : System
GetCacheFactory ( Type cacheFactoryType ) : ICacheFactory
NewCache ( string cacheName ) : ICache

Creates a New ICache

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

AddVariable() публичный Метод

Adds an instance variable to the Factory
public AddVariable ( string key, string value ) : void
key string key
value string value
Результат void

Dispose() публичный Метод

Disposes the CacheFactory Instance
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Triggered on instance dipose
protected Dispose ( bool disposing ) : void
disposing bool bool
Результат void

GetCache() публичный Метод

Creates or Gets a Cache Instance
public GetCache ( string cacheName ) : ICache
cacheName string string
Результат ICache

GetFactory() публичный статический Метод

Returns an instance of a named CacheFactory
public static GetFactory ( string name ) : ICacheFactory
name string name of the CacheFactory
Результат ICacheFactory

RemoveCache() публичный Метод

Removes a Cache in the factory specified by the cache name
public RemoveCache ( string cacheName ) : void
cacheName string string
Результат void

SetCacheFactoryConfiguration() публичный статический Метод

Sets the configuration of the CacheFactories
public static SetCacheFactoryConfiguration ( CacheFactoryConfigurationSection configuration ) : void
configuration Meek.Caching.Configuration.CacheFactoryConfigurationSection CacheFactoryConfigurationSection
Результат void

SetDefaultCacheFactory() публичный статический Метод

Sets the Default CacheFactory Instance
public static SetDefaultCacheFactory ( ICacheFactory cacheFactory ) : void
cacheFactory ICacheFactory ICacheFactory Instance
Результат void