DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) 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.
Belirtilen önbellekte belirtilen anahtarla bir bayt dizisi ayarlar.
public:
[System::Runtime::CompilerServices::Extension]
static void Set(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key, cli::array <System::Byte> ^ value);
public static void Set(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value);
static member Set : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string * byte[] -> unit
<Extension()>
Public Sub Set (cache As IDistributedCache, key As String, value As Byte())
Parametreler
- cache
- IDistributedCache
Verilerin depolandığı önbellek.
- key
- String
Verileri depolama anahtarı.
- value
- Byte[]
Önbellekte depoya alınacak veriler.
Özel durumlar
key veya value null değeridir.