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
[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.ArgumentException | If 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.