C# Class ScrewTurn.Wiki.Cache

Manages data cache.
显示文件 Open project: mono/ScrewTurnWiki

Public Methods

Method Description
ClearPageCache ( ) : void

Clears the pages cache.

ClearPseudoCache ( ) : void

Clears the pseudo cache.

GetFormattedPageContent ( System.PageInfo page ) : string

Gets a cached formatted page content.

GetPageContent ( System.PageInfo page ) : PageContent

Gets a cached T:PageContent.

GetPseudoCacheValue ( string name ) : string

Gets a pseudo cache item value.

RemovePage ( System.PageInfo page ) : void

Removes a page from the cache.

SetFormattedPageContent ( System.PageInfo page, string content ) : void

Sets the formatted page content in cache.

SetPageContent ( System.PageInfo page, PageContent content ) : void

Sets the page content in cache.

SetPseudoCacheValue ( string name, string value ) : void

Sets a pseudo cache item value.

Method Details

ClearPageCache() public static method

Clears the pages cache.
public static ClearPageCache ( ) : void
return void

ClearPseudoCache() public static method

Clears the pseudo cache.
public static ClearPseudoCache ( ) : void
return void

GetFormattedPageContent() public static method

Gets a cached formatted page content.
public static GetFormattedPageContent ( System.PageInfo page ) : string
page System.PageInfo The page to get the formatted content of.
return string

GetPageContent() public static method

Gets a cached T:PageContent.
public static GetPageContent ( System.PageInfo page ) : PageContent
page System.PageInfo The page to get the content of.
return ScrewTurn.Wiki.PluginFramework.PageContent

GetPseudoCacheValue() public static method

Gets a pseudo cache item value.
public static GetPseudoCacheValue ( string name ) : string
name string The name of the item to get the value of.
return string

RemovePage() public static method

Removes a page from the cache.
public static RemovePage ( System.PageInfo page ) : void
page System.PageInfo The page to remove.
return void

SetFormattedPageContent() public static method

Sets the formatted page content in cache.
public static SetFormattedPageContent ( System.PageInfo page, string content ) : void
page System.PageInfo The page to set the content of.
content string The content.
return void

SetPageContent() public static method

Sets the page content in cache.
public static SetPageContent ( System.PageInfo page, PageContent content ) : void
page System.PageInfo The page to set the content of.
content ScrewTurn.Wiki.PluginFramework.PageContent The content.
return void

SetPseudoCacheValue() public static method

Sets a pseudo cache item value.
public static SetPseudoCacheValue ( string name, string value ) : void
name string The name of the item to set the value of.
value string The value of the item.
return void