C# Class Rebel.Framework.HttpRequestScopedCache

A Scoped Cache provider which stores items in the HttpContext.Items cache.
Inheritance: AbstractScopedCache
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Public Methods

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

Removes any item from the cache that match the regex pattern

ScopeComplete ( ) : void

Private Methods

Method Description
DoAddOrChange ( string key, object>.Func factory ) : object
GetFromContext ( string key ) : object

Method Details

AddOrChange() public method

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

GetOrCreate() public method

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

InvalidateItems() public method

Removes any item from the cache that match the regex pattern
public InvalidateItems ( string pattern ) : int
pattern string
return int

ScopeComplete() public method

public ScopeComplete ( ) : void
return void