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

Definitie

Hiermee stelt u een reeks bytes in de opgegeven cache in met de opgegeven sleutel.

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

Parameters

cache
IDistributedCache

De cache waarin de gegevens moeten worden opgeslagen.

key
String

De sleutel waarin de gegevens moeten worden opgeslagen.

value
Byte[]

De gegevens die moeten worden opgeslagen in de cache.

Uitzonderingen

key of value null is.

Van toepassing op