DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) Metoda

Definice

Nastaví posloupnost bajtů v zadané mezipaměti pomocí zadaného klíče.

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())

Parametry

cache
IDistributedCache

Mezipaměť, do které se mají ukládat data.

key
String

Klíč pro uložení dat.

value
Byte[]

Data, která se mají uložit do mezipaměti.

Výjimky

key nebo value je null.

Platí pro