Platform Core .NET Assemblies API
WithLocalCachingOnly Method
See Also  Send Feedback
Terrasoft.Core.Store Namespace > CacheStoreUtilities Class : WithLocalCachingOnly Method
source
Cache.
groupName
The name for the group of freshness control items. All elements that are placed in this group will lose relevance when the ExpireGroup method is called.
ignoreUserIdentity
A flag of the participation of the name of the current user in the formation of the cache access key.

Glossary Item Box

Provides the local data storage and data freshness monitoring , using the specified (global) cache.

Syntax

 
C#
 
 

Parameters

source
Cache.
groupName
The name for the group of freshness control items. All elements that are placed in this group will lose relevance when the ExpireGroup method is called.
ignoreUserIdentity
A flag of the participation of the name of the current user in the formation of the cache access key.

Return Value

The cache wrapper that provides the local data storage and verifies data freshness in the initial cache. The freshness indicator is verified each time the entities are accessed.

Exceptions

ExceptionDescription
System.ArgumentExceptionIf an empty string or null is received as the groupName parameter.

Remarks

The data is not passed to a cache – it only verifies the freshness indicator. Items in the local cache lose relevance only when the ExpireGroup method is called, but not when writing a new object to the cache.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.