Compartir a través de


MemoryCache Constructores

Definición

Sobrecargas

MemoryCache(IOptions<MemoryCacheOptions>)

Crea una nueva instancia de MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Crea una nueva instancia de MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>)

Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs

Crea una nueva instancia de MemoryCache.

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

Parámetros

optionsAccessor
IOptions<MemoryCacheOptions>

Las opciones de la caché.

Se aplica a

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs
Source:
MemoryCache.cs

Crea una nueva instancia de MemoryCache.

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

Parámetros

optionsAccessor
IOptions<MemoryCacheOptions>

Las opciones de la caché.

loggerFactory
ILoggerFactory

El generador que se usa para crear registradores.

Se aplica a