C# Class Rebel.Framework.ThreadStaticScopedCache

Inheritance: AbstractScopedCache
ファイルを表示 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

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