DistributedCacheExtensions.SetString Yöntem

Tanım

Aşırı Yüklemeler

SetString(IDistributedCache, String, String)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

SetString(IDistributedCache, String, String)

Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

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)

Parametreler

cache
IDistributedCache

Verilerin depolandığı önbellek.

key
String

Verileri depolama anahtarı.

value
String

Önbellekte depoacak veriler.

Özel durumlar

key veya value null.

Şunlara uygulanır

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs
Kaynak:
DistributedCacheExtensions.cs

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

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)

Parametreler

cache
IDistributedCache

Verilerin depolandığı önbellek.

key
String

Verileri depolama anahtarı.

value
String

Önbellekte depoacak veriler.

options
DistributedCacheEntryOptions

Girdi için önbellek seçenekleri.

Özel durumlar

key veya value null.

Şunlara uygulanır