DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 키를 사용하여 지정된 캐시의 바이트 시퀀스를 설정합니다.
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입니다.