DistributedCacheExtensions.GetString(IDistributedCache, String) 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.
Sztringet kap a megadott gyorsítótárból a megadott kulccsal.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetString(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key);
public static string? GetString(this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key);
static member GetString : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string -> string
<Extension()>
Public Function GetString (cache As IDistributedCache, key As String) As String
Paraméterek
- cache
- IDistributedCache
Az a gyorsítótár, amelyben az adatokat tárolni szeretné.
- key
- String
A tárolt adatok lekérésének kulcsa.
Válaszok
A tárolt gyorsítótárkulcs sztringértéke.