Partilhar via


MemoryCache Construtores

Definição

Sobrecargas

MemoryCache(IOptions<MemoryCacheOptions>)

Cria uma nova instância MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Cria uma nova instância MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>)

Origem:
MemoryCache.cs
Origem:
MemoryCache.cs

Cria uma nova instância 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>

As opções do cache.

Aplica-se a

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Origem:
MemoryCache.cs
Origem:
MemoryCache.cs

Cria uma nova instância 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>

As opções do cache.

loggerFactory
ILoggerFactory

O alocador usado para criar agentes.

Aplica-se a