API
IDistributedCache.SetAsync
Stores bytes with an expiration policy.
Formal Syntax & Structure
csharp syntaxcsharp
await cache.SetAsync(key, bytes, options, token)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.await cache.SetAsync(key, bytes, options, token)