DistributedCacheExtensions.SetString Methode

Definitie

Overloads

Name Description
SetString(IDistributedCache, String, String)

Hiermee stelt u een tekenreeks in de opgegeven cache in met de opgegeven sleutel.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Hiermee stelt u een tekenreeks in de opgegeven cache in met de opgegeven sleutel.

SetString(IDistributedCache, String, String)

Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs

Hiermee stelt u een tekenreeks in de opgegeven cache in met de opgegeven sleutel.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetString(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key, System::String ^ value);
public static void SetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value);
static member SetString : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string * string -> unit
<Extension()>
Public Sub SetString (cache As IDistributedCache, key As String, value As String)

Parameters

cache
IDistributedCache

De cache waarin de gegevens moeten worden opgeslagen.

key
String

De sleutel waarin de gegevens moeten worden opgeslagen.

value
String

De gegevens die moeten worden opgeslagen in de cache.

Uitzonderingen

key of value null is.

Van toepassing op

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs
Bron:
DistributedCacheExtensions.cs

Hiermee stelt u een tekenreeks in de opgegeven cache in met de opgegeven sleutel.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetString(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key, System::String ^ value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);
public static void SetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, string value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);
static member SetString : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string * string * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
<Extension()>
Public Sub SetString (cache As IDistributedCache, key As String, value As String, options As DistributedCacheEntryOptions)

Parameters

cache
IDistributedCache

De cache waarin de gegevens moeten worden opgeslagen.

key
String

De sleutel waarin de gegevens moeten worden opgeslagen.

value
String

De gegevens die moeten worden opgeslagen in de cache.

options
DistributedCacheEntryOptions

De cacheopties voor de vermelding.

Uitzonderingen

key of value null is.

Van toepassing op