DistributedCacheExtensions.GetString(IDistributedCache, String) 메서드

정의

지정된 키로 지정된 캐시에서 문자열을 가져옵니다.

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);
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

매개 변수

cache
IDistributedCache

데이터를 저장할 캐시입니다.

key
String

저장된 데이터를 가져올 키입니다.

반환

저장된 캐시 키의 문자열 값입니다.

적용 대상