Creatio development guide
Это документация Creatio версии 7.9.0. Мы рекомендуем использовать новую версию документации.

CacheStoreUtilities.WithLocalCachingOnly - метод Смотри также  Terrasoft.Core.Store - пространство имен > CacheStoreUtilities - класс : WithLocalCachingOnly - метод C#

source
Cache.
groupName
The name for the group of freshness control items. All items placed in this group will become stale if the ExpireGroup method is called.
ignoreUserIdentity
Flag that identifies that the name of the current user is used when generating access key to cache.

Glossary Item Box

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

Синтаксис

[Extension()] 
public static ICacheStore WithLocalCachingOnly( 
   ICacheStore source, 
   string groupName, 
   bool ignoreUserIdentity 
)

Параметры

source
Cache.
groupName
The name for the group of freshness control items. All items placed in this group will become stale if the ExpireGroup method is called.
ignoreUserIdentity
Flag that identifies that the name of the current user is used when generating access key to cache.

Тип возвращаемого значения

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.

Исключения

ИсключениеОписание
System.ArgumentExceptionIf an empty string or null is received as the groupName parameter.

Заметки

The data is not passed to a cache – it only verifies the freshness indicator! Items in the local cache become stale ONLY IF the ExpireGroup method is called, as opposed to writing a new entity to the cache.

Смотри также

© Terrasoft 2002-2017.

Был ли данный материал полезен?

Как можно улучшить эту статью?