API
IMemoryCache.TryGetValue
Looks up a cached value without treating a miss as a failure.
Formal Syntax & Structure
csharp syntaxcsharp
cache.TryGetValue(key, out object? value)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.cache.TryGetValue(key, out object? value)