IDistributedCache.Set(String, Byte[], DistributedCacheEntryOptions) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置具有给定键的值。
public:
 void Set(System::String ^ key, cli::array <System::Byte> ^ value, Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options);public void Set(string key, byte[] value, Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options);abstract member Set : string * byte[] * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unitPublic Sub Set (key As String, value As Byte(), options As DistributedCacheEntryOptions)参数
- key
- String
用于标识所请求的值的字符串。
- value
- Byte[]
要在缓存中设置的值。
- options
- DistributedCacheEntryOptions
值的缓存选项。