DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Define uma sequência de bytes no cache especificado com a chave especificada.
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())
Parâmetros
- cache
- IDistributedCache
O cache no qual armazenar os dados.
- key
- String
A chave na qual armazenar os dados.
- value
- Byte[]
Os dados a armazenar no cache.
Exceções
key
ou value
é nulo.