C# Class Aspectacular.CacheFactory

Datei anzeigen Open project: vgribok/Aspectacular

Public Methods

Method Description
CreateCacheAspect ( this cacheProvider ) : CacheAspect

Instantiates new CacheAspect for a given cache provider.

CreateCacheAspect ( this cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : CacheAspect

A shortcut method marrying .NET Framework's ObjectCache to CacheAspect.

CreateCacheProvider ( this cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : ObjectCacheFacade

Augments .NET Framework ObjectCache and its descendants into Aspectacular-friendly cache provider compatible with the CacheAspect.

Method Details

CreateCacheAspect() public static method

Instantiates new CacheAspect for a given cache provider.
public static CreateCacheAspect ( this cacheProvider ) : CacheAspect
cacheProvider this
return CacheAspect

CreateCacheAspect() public static method

A shortcut method marrying .NET Framework's ObjectCache to CacheAspect.
public static CreateCacheAspect ( this cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : CacheAspect
cache this
cachePolicyTemplate System.Runtime.Caching.CacheItemPolicy .NET Framework object driving cached item expiration.
regionName string
return CacheAspect

CreateCacheProvider() public static method

Augments .NET Framework ObjectCache and its descendants into Aspectacular-friendly cache provider compatible with the CacheAspect.
public static CreateCacheProvider ( this cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : ObjectCacheFacade
cache this
cachePolicyTemplate System.Runtime.Caching.CacheItemPolicy .NET Framework object driving cached item expiration.
regionName string
return ObjectCacheFacade