MemoryDistributedCache.Set 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.
içindeki bir anahtarla IMemoryCache ilişkilendirilmiş belirtilen öğeyi bayt dizisi olarak ayarlar.
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)
Parametreler
- key
- String
Ayarlanacağı öğenin anahtarı.
- value
- Byte[]
Ayarlanacağı öğenin bayt dizisi değeri.
- options
- DistributedCacheEntryOptions
Ayarlanacağı öğenin önbellek seçenekleri.