AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageCacheManager..::..ClearItem Method

Removes a single cached item identified by the specified key. The key is automatically scoped by domain and language.

Namespace:  AdvantageCMS.Core.Utils.Cache
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public void ClearItem(
	string key
)

Parameters

key
Type: String
The cache key prefix of the item to remove.

Examples


Remove a specific cached item after its source data has been modified.
C#
var cache = new AdvantageCacheManager(eAdvantageCacheContainerType.WebServer, 1, 1);
UpdateSiteConfig(newConfig);
cache.ClearItem("site_config");