ITokenCacheTKey, TValue - интерфейс

Represents cache for tokens.

Definition

Пространство имён: Tessa.Tokens.Caching
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public interface ITokenCache<TKey, TValue>

Параметры типа

TKey
TValue

Методы

Clear Clears the cache and resets its state, removing all entries.
TryAddOrUpdate Attempts to add or update the cache value associated with the specified key.
TryGet(FuncTKey, TValue, Boolean, TValue) Attempts to retrieve the cache value that matches the specified condition.
TryGet(TKey, TValue) Attempts to retrieve the cache value associated with the specified key.
TryRemove(FuncTKey, TValue, Boolean, TValue) Attempts to remove the cache value that matches the specified condition.
TryRemove(TKey, TValue) Attempts to remove the cache value associated with the specified key.
TryUpdate Attempts to update the cache value that matches the specified condition.

См. также