DistributedCacheExtensions.Set(IDistributedCache, String, Byte[]) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Establece una secuencia de bytes en la memoria caché especificada con la clave 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
Caché en la que se van a almacenar los datos.
- key
- String
Clave en la que se almacenarán los datos.
- value
- Byte[]
Datos que se van a almacenar en la memoria caché.
Excepciones
key o value es null.