共用方式為


IDistributedCache.Set(String, Byte[], DistributedCacheEntryOptions) 方法

定義

使用指定的索引鍵設定值。

public:
 void Set(System::String ^ key, cli::array <System::Byte> ^ value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);
public void Set (string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);
abstract member Set : string * byte[] * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
Public Sub Set (key As String, value As Byte(), options As DistributedCacheEntryOptions)

參數

key
String

可識別所要求值的字串。

value
Byte[]

要在快取中設定的值。

options
DistributedCacheEntryOptions

值的快取選項。

適用於