IBufferDistributedCache.Set Método

Definição

Define ou sobrescreve um item de cache.

public:
 void Set(System::String ^ key, System::Buffers::ReadOnlySequence<System::Byte> value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);
public void Set(string key, System.Buffers.ReadOnlySequence<byte> value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);
abstract member Set : string * System.Buffers.ReadOnlySequence<byte> * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
Public Sub Set (key As String, value As ReadOnlySequence(Of Byte), options As DistributedCacheEntryOptions)

Parâmetros

key
String

A chave da entrada para criar.

value
ReadOnlySequence<Byte>

O valor desta entrada de cache.

options
DistributedCacheEntryOptions

As opções de cache para a entrada.

Observações

Este método é funcionalmente semelhante a Set(String, Byte[], DistributedCacheEntryOptions), mas evita a alocação de arrays.

Aplica-se a