DistributedCacheExtensions.SetString Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Túlterhelések
| Name | Description |
|---|---|
| SetString(IDistributedCache, String, String) |
Beállít egy sztringet a megadott gyorsítótárban a megadott kulccsal. |
| SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) |
Beállít egy sztringet a megadott gyorsítótárban a megadott kulccsal. |
SetString(IDistributedCache, String, String)
Beállít egy sztringet a megadott gyorsítótárban a megadott kulccsal.
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)
Paraméterek
- cache
- IDistributedCache
Az a gyorsítótár, amelyben az adatokat tárolni szeretné.
- key
- String
Az adatok tárolásának kulcsa.
- value
- String
A gyorsítótárban tárolandó adatok.
Kivételek
key vagy value null értékű.
A következőre érvényes:
SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)
Beállít egy sztringet a megadott gyorsítótárban a megadott kulccsal.
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)
Paraméterek
- cache
- IDistributedCache
Az a gyorsítótár, amelyben az adatokat tárolni szeretné.
- key
- String
Az adatok tárolásának kulcsa.
- value
- String
A gyorsítótárban tárolandó adatok.
- options
- DistributedCacheEntryOptions
A bejegyzés gyorsítótárazási beállításai.
Kivételek
key vagy value null értékű.