語言

MemoryDistributedCache.Set 方法

定義

將與鍵 IMemoryCache 相關聯的指定項目設為位元組陣列。

public:
 virtual 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
override this.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

物品的快取選項要設定。

實作

適用於