Aracılığıyla paylaş


IBufferDistributedCache.Set Yöntem

Tanım

Önbellek öğesini ayarlar veya üzerine yazar.

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)

Parametreler

key
String

Oluşturulacak girişin anahtarı.

value
ReadOnlySequence<Byte>

Bu önbellek girdisinin değeri.

options
DistributedCacheEntryOptions

Girdi için önbellek seçenekleri.

Açıklamalar

Bu işlev olarak Set(String, Byte[], DistributedCacheEntryOptions)benzer, ancak dizi ayırmayı önler.

Şunlara uygulanır