Microsoft.Extensions.Caching.Distributed.IBufferDistributedCache
Represents a distributed cache of serialized values, with support for low allocation data transfer.
Sets or overwrites a cache item.
ValueTask SetAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token = default)
Asynchronously sets or overwrites a cache entry.
Attempts to retrieve an existing cache item.
ValueTask<bool> TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token = default)
Asynchronously attempts to retrieve an existing cache entry.