Compartir a través de


MemoryDistributedCache Constructores

Definición

Sobrecargas

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Crea una nueva instancia de MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Crea una nueva instancia de MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Source:
MemoryDistributedCache.cs
Source:
MemoryDistributedCache.cs
Source:
MemoryDistributedCache.cs

Crea una nueva instancia de MemoryDistributedCache.

public:
 MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions))

Parámetros

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Las opciones de la caché.

Se aplica a

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Source:
MemoryDistributedCache.cs
Source:
MemoryDistributedCache.cs
Source:
MemoryDistributedCache.cs

Crea una nueva instancia de MemoryDistributedCache.

public:
 MemoryDistributedCache(Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryDistributedCacheOptions ^> ^ optionsAccessor, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public MemoryDistributedCache (Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> optionsAccessor, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryDistributedCacheOptions> * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Public Sub New (optionsAccessor As IOptions(Of MemoryDistributedCacheOptions), loggerFactory As ILoggerFactory)

Parámetros

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Las opciones de la caché.

loggerFactory
ILoggerFactory

Generador de registradores que se va a crear ILogger para registrar mensajes.

Se aplica a