Sdílet prostřednictvím


IBufferDistributedCache.Set Metoda

Definice

Nastaví nebo přepíše položku mezipaměti.

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)

Parametry

key
String

Klíč položky, která se má vytvořit.

value
ReadOnlySequence<Byte>

Hodnota pro tuto položku mezipaměti.

options
DistributedCacheEntryOptions

Možnosti mezipaměti pro položku.

Poznámky

Toto je funkčně podobné Set(String, Byte[], DistributedCacheEntryOptions), ale zabraňuje přidělení pole.

Platí pro