C# Class Meek.Caching.CacheFactory

Meek Default Cache Factory
Inheritance: ICacheFactory, IDisposable
Afficher le fichier Open project: klintz/Meek

Private Properties

Свойство Type Description
CacheFactory System
GetCacheFactory ICacheFactory
NewCache ICache

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Triggered on instance dipose

Private Methods

Méthode Description
CacheFactory ( ) : System
GetCacheFactory ( Type cacheFactoryType ) : ICacheFactory
NewCache ( string cacheName ) : ICache

Creates a New ICache

Method Details

AddVariable() public méthode

Adds an instance variable to the Factory
public AddVariable ( string key, string value ) : void
key string key
value string value
Résultat void

Dispose() public méthode

Disposes the CacheFactory Instance
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Triggered on instance dipose
protected Dispose ( bool disposing ) : void
disposing bool bool
Résultat void

GetCache() public méthode

Creates or Gets a Cache Instance
public GetCache ( string cacheName ) : ICache
cacheName string string
Résultat ICache

GetFactory() public static méthode

Returns an instance of a named CacheFactory
public static GetFactory ( string name ) : ICacheFactory
name string name of the CacheFactory
Résultat ICacheFactory

RemoveCache() public méthode

Removes a Cache in the factory specified by the cache name
public RemoveCache ( string cacheName ) : void
cacheName string string
Résultat void

SetCacheFactoryConfiguration() public static méthode

Sets the configuration of the CacheFactories
public static SetCacheFactoryConfiguration ( CacheFactoryConfigurationSection configuration ) : void
configuration Meek.Caching.Configuration.CacheFactoryConfigurationSection CacheFactoryConfigurationSection
Résultat void

SetDefaultCacheFactory() public static méthode

Sets the Default CacheFactory Instance
public static SetDefaultCacheFactory ( ICacheFactory cacheFactory ) : void
cacheFactory ICacheFactory ICacheFactory Instance
Résultat void