C# Class Meek.Caching.CacheFactory

Meek Default Cache Factory
Inheritance: ICacheFactory, IDisposable
Show file Open project: klintz/Meek

Private Properties

Property Type Description
CacheFactory System
GetCacheFactory ICacheFactory
NewCache ICache

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Triggered on instance dipose

Private Methods

Method Description
CacheFactory ( ) : System
GetCacheFactory ( Type cacheFactoryType ) : ICacheFactory
NewCache ( string cacheName ) : ICache

Creates a New ICache

Method Details

AddVariable() public method

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

Dispose() public method

Disposes the CacheFactory Instance
public Dispose ( ) : void
return void

Dispose() protected method

Triggered on instance dipose
protected Dispose ( bool disposing ) : void
disposing bool bool
return void

GetCache() public method

Creates or Gets a Cache Instance
public GetCache ( string cacheName ) : ICache
cacheName string string
return ICache

GetFactory() public static method

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

RemoveCache() public method

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

SetCacheFactoryConfiguration() public static method

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

SetDefaultCacheFactory() public static method

Sets the Default CacheFactory Instance
public static SetDefaultCacheFactory ( ICacheFactory cacheFactory ) : void
cacheFactory ICacheFactory ICacheFactory Instance
return void