Nyelv

DistributedCacheExtensions.GetString(IDistributedCache, String) Metódus

Definíció

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.

A következőre érvényes: