共用方式為


IBufferDistributedCache.Set 方法

定義

設定或覆寫快取專案。

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)

參數

key
String

要建立之專案的索引鍵。

value
ReadOnlySequence<Byte>

這個快取專案的值。

options
DistributedCacheEntryOptions

專案的快取選項。

備註

這在功能上與 Set(String, Byte[], DistributedCacheEntryOptions)類似,但會避免數位配置。

適用於