IBufferDistributedCache.SetAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.