C# Class Aspectacular.ObjectCacheFacade

A class fronting .NET Framework's mediocre ObjectCache with Aspectacular-friendly ICacheProvider implementation.
Inheritance: ICacheProvider2
Datei anzeigen Open project: vgribok/Aspectacular Class Usage Examples

Protected Properties

Property Type Description
cacheTemplatePolicy System.Runtime.Caching.CacheItemPolicy
objectCache ObjectCache
regionName string

Public Methods

Method Description
Set ( string key, object val, System.Proxy proxy ) : void
TryGet ( string key, object &val, System.Proxy proxy ) : bool

Protected Methods

Method Description
ClonePolicy ( ) : System.Runtime.Caching.CacheItemPolicy
ObjectCacheFacade ( ObjectCache cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : System

Method Details

ClonePolicy() protected method

protected ClonePolicy ( ) : System.Runtime.Caching.CacheItemPolicy
return System.Runtime.Caching.CacheItemPolicy

ObjectCacheFacade() protected method

protected ObjectCacheFacade ( ObjectCache cache, System.Runtime.Caching.CacheItemPolicy cachePolicyTemplate, string regionName = null ) : System
cache ObjectCache
cachePolicyTemplate System.Runtime.Caching.CacheItemPolicy Template from which all items will get their CacheItemPolicy cloned.
regionName string
return System

Set() public method

public Set ( string key, object val, System.Proxy proxy ) : void
key string
val object
proxy System.Proxy
return void

TryGet() public method

public TryGet ( string key, object &val, System.Proxy proxy ) : bool
key string
val object
proxy System.Proxy
return bool

Property Details

cacheTemplatePolicy protected_oe property

protected CacheItemPolicy,System.Runtime.Caching cacheTemplatePolicy
return System.Runtime.Caching.CacheItemPolicy

objectCache protected_oe property

protected ObjectCache objectCache
return ObjectCache

regionName protected_oe property

protected string regionName
return string