MemoryDistributedCache.Set 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將與鍵 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
物品的快取選項要設定。