SqlServerCache.Set(String, Byte[], DistributedCacheEntryOptions) 方法

定义

设置具有给定键的值。

public:
 virtual 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 -> unit
override this.Set : string * byte[] * Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions -> unit
Public Sub Set (key As String, value As Byte(), options As DistributedCacheEntryOptions)

参数

key
String

用于标识所请求的值的字符串。

value
Byte[]

要在缓存中设置的值。

options
DistributedCacheEntryOptions

值的缓存选项。

实现

适用于