API
HybridCache.GetOrCreateAsync
Gets a value or coordinates a fill using the configured cache layers.
Formal Syntax & Structure
csharp syntaxcsharp
await cache.GetOrCreateAsync(key, factory, cancellationToken: token)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.await cache.GetOrCreateAsync(key, factory, cancellationToken: token)