C# Class cloudscribe.Web.Navigation.Caching.MemoryTreeCache

Inheritance: ITreeCache
Mostra file Open project: joeaudette/cloudscribe.Web.Navigation

Public Methods

Method Description
AddToCache ( TreeNode tree, string cacheKey ) : void
GetTree ( string cacheKey ) : Task>
MemoryTreeCache ( IMemoryCache cache, IOptions optionsAccessor = null ) : Microsoft.Extensions.Caching.Memory

Method Details

AddToCache() public method

public AddToCache ( TreeNode tree, string cacheKey ) : void
tree TreeNode
cacheKey string
return void

GetTree() public method

public GetTree ( string cacheKey ) : Task>
cacheKey string
return Task>

MemoryTreeCache() public method

public MemoryTreeCache ( IMemoryCache cache, IOptions optionsAccessor = null ) : Microsoft.Extensions.Caching.Memory
cache IMemoryCache
optionsAccessor IOptions
return Microsoft.Extensions.Caching.Memory