C# Class Castle.Facilities.Cache.CacheInterceptor

Caches the return value of the intercepted method.
Inheritance: IInterceptor
Datei anzeigen Open project: nats/castle-1.0.3-mono

Public Properties

Property Type Description
NULL_OBJECT object

Public Methods

Method Description
CacheInterceptor ( CacheConfigHolder transactionConfHolder ) : System
Intercept ( IInvocation invocation ) : void

Returns from the cache provider the value saved with the key generated using the specified IMethodInvocation. If the object is not found in the cache, the intercepted method is executed and its returned value is saved in the cached and returned by this method.

Method Details

CacheInterceptor() public method

public CacheInterceptor ( CacheConfigHolder transactionConfHolder ) : System
transactionConfHolder CacheConfigHolder
return System

Intercept() public method

Returns from the cache provider the value saved with the key generated using the specified IMethodInvocation. If the object is not found in the cache, the intercepted method is executed and its returned value is saved in the cached and returned by this method.
public Intercept ( IInvocation invocation ) : void
invocation IInvocation the description of the intercepted method.
return void

Property Details

NULL_OBJECT public_oe static_oe property

public static object NULL_OBJECT
return object