DistributedCacheExtensions.SetString Metod

Definition

Överlagringar

Name Description
SetString(IDistributedCache, String, String)

Anger en sträng i den angivna cachen med den angivna nyckeln.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Anger en sträng i den angivna cachen med den angivna nyckeln.

SetString(IDistributedCache, String, String)

Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs

Anger en sträng i den angivna cachen med den angivna nyckeln.

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)

Parametrar

cache
IDistributedCache

Cachen där data ska lagras.

key
String

Nyckeln för att lagra data i.

value
String

De data som ska lagras i cacheminnet.

Undantag

key eller value är null.

Gäller för

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs
Källa:
DistributedCacheExtensions.cs

Anger en sträng i den angivna cachen med den angivna nyckeln.

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)

Parametrar

cache
IDistributedCache

Cachen där data ska lagras.

key
String

Nyckeln för att lagra data i.

value
String

De data som ska lagras i cacheminnet.

options
DistributedCacheEntryOptions

Cachealternativen för posten.

Undantag

key eller value är null.

Gäller för