ITokenCacheTKey, TValueTryGet(FuncTKey, TValue, Boolean, TValue) - метод

Attempts to retrieve the cache value that matches the specified condition.

Definition

Пространство имён: Tessa.Tokens.Caching
Сборка: Tessa (в Tessa.dll) Версия: 4.1.5+a9a57e1eda0b57f197e0c68d2aa7d7dc95b6c424
C#
bool TryGet(
	Func<TKey, TValue, bool> predicate,
	out TValue value
)

Параметры

predicate  FuncTKey, TValue, Boolean
A function to test each cache entry.
value  TValue
The cache value if retrieval is successful; otherwise, .

Возвращаемое значение

Boolean
if the value was found; otherwise, .

Заметки

This method will automatically trigger cleanup if necessary, before attempting to retrieve the value.

См. также