MemoryDistributedCache.Set Método

Definición

Establece el elemento especificado asociado a una clave de IMemoryCache como una matriz de bytes.

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)

Parámetros

key
String

Clave del elemento que se va a establecer.

value
Byte[]

Valor de matriz de bytes del elemento que se va a establecer.

options
DistributedCacheEntryOptions

Opciones de caché del elemento que se va a establecer.

Implementaciones

Se aplica a