ISettingsUnitCache - интерфейс

Cache for settings unit records. Provides fast access to SettingsUnitRecord instances.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public interface ISettingsUnitCache

Заметки

Supports invalidation of single records or the entire cache. Invalidation triggers global cache events (SettingsUnits) so that distributed components or other application nodes can react to changes.

Методы

EnsurePreloadedAsync Preloads all registered settings unit records into the cache.
GetAsync Retrieves a settings unit record by key. If missing in the cache, it will be loaded asynchronously and stored for subsequent requests.
InvalidateAsync Invalidates cached entries for settings units.
TryGetAsync Retrieves a settings unit record by key. The record will not be loaded if missing in the cache.

См. также