DistributedCacheExtensions.SetString 메서드

정의

오버로드

SetString(IDistributedCache, String, String)

지정된 키로 지정된 캐시에서 문자열을 설정합니다.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

지정된 키로 지정된 캐시에서 문자열을 설정합니다.

SetString(IDistributedCache, String, String)

Source:
DistributedCacheExtensions.cs
Source:
DistributedCacheExtensions.cs
Source:
DistributedCacheExtensions.cs

지정된 키로 지정된 캐시에서 문자열을 설정합니다.

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)

매개 변수

cache
IDistributedCache

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

key
String

데이터를 저장할 키입니다.

value
String

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

예외

key 또는 value가 null입니다.

적용 대상

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Source:
DistributedCacheExtensions.cs
Source:
DistributedCacheExtensions.cs
Source:
DistributedCacheExtensions.cs

지정된 키로 지정된 캐시에서 문자열을 설정합니다.

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)

매개 변수

cache
IDistributedCache

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

key
String

데이터를 저장할 키입니다.

value
String

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

options
DistributedCacheEntryOptions

항목에 대한 캐시 옵션입니다.

예외

key 또는 value가 null입니다.

적용 대상