Microsoft.Extensions.Caching.Distributed.IBufferDistributedCache
Represents a distributed cache of serialized values, with support for low allocation data transfer.
namespace Microsoft.Extensions.Caching.Distributed
{
public interface IBufferDistributedCache : IDistributedCache
{
bool TryGet(string key, IBufferWriter<byte> destination);
ValueTask<bool> TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token = default(CancellationToken));
void Set(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options);
ValueTask SetAsync(string key, ReadOnlySequence<byte> value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken));
}
}