C# Class Rebel.Framework.AbstractScopedCache

A cache provider used for caching data in the current scope. For example, in a web application the current scope is the current request.
Inheritance: DisposableObject
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
AddOrChange ( string key, object>.Func factory ) : void
GetOrCreate ( string key, Func callback ) : object
InvalidateItems ( string pattern ) : int

Removes an item from the cache

ScopeComplete ( ) : void

Protected Methods

Method Description
DisposeResources ( ) : void

Method Details

AddOrChange() public abstract method

public abstract AddOrChange ( string key, object>.Func factory ) : void
key string
factory object>.Func
return void

DisposeResources() protected method

protected DisposeResources ( ) : void
return void

GetOrCreate() public abstract method

public abstract GetOrCreate ( string key, Func callback ) : object
key string
callback Func
return object

InvalidateItems() public abstract method

Removes an item from the cache
public abstract InvalidateItems ( string pattern ) : int
pattern string
return int

ScopeComplete() public abstract method

public abstract ScopeComplete ( ) : void
return void