Aracılığıyla paylaş


IBufferDistributedCache.SetAsync Yöntem

Tanım

Zaman uyumsuz olarak bir önbellek girdisi ayarlar veya üzerine yazar.

public System.Threading.Tasks.ValueTask SetAsync (string key, System.Buffers.ReadOnlySequence<byte> value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, System.Threading.CancellationToken token = default);
abstract member SetAsync : string * System.Buffers.ReadOnlySequence<byte> * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function SetAsync (key As String, value As ReadOnlySequence(Of Byte), options As DistributedCacheEntryOptions, Optional token As CancellationToken = Nothing) As ValueTask

Parametreler

key
String

Oluşturulacak girişin anahtarı.

value
ReadOnlySequence<Byte>

Bu önbellek girdisinin değeri.

options
DistributedCacheEntryOptions

Değerin önbellek seçenekleri.

token
CancellationToken

İşlemin iptal edilmesi gerektiğine ilişkin bildirimleri yaymak için kullanılan CancellationToken.

Döndürülenler

Açıklamalar

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

Şunlara uygulanır