DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) 메서드

정의

지정된 키로 지정된 캐시의 바이트 시퀀스를 설정합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static void Set(Microsoft::Extensions::Caching::Distributed::IDistributedCache ^ cache, System::String ^ key, cli::array <System::Byte> ^ value);
public static void Set (this Microsoft.Extensions.Caching.Distributed.IDistributedCache cache, string key, byte[] value);
static member Set : Microsoft.Extensions.Caching.Distributed.IDistributedCache * string * byte[] -> unit
<Extension()>
Public Sub Set (cache As IDistributedCache, key As String, value As Byte())

매개 변수

cache
IDistributedCache

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

key
String

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

value
Byte[]

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

예외

key 또는 value가 null입니다.

적용 대상