Condividi tramite


MemoryCache Costruttori

Definizione

Overload

MemoryCache(IOptions<MemoryCacheOptions>)

Crea una nuova istanza di MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Crea una nuova istanza di MemoryCache.

MemoryCache(IOptions<MemoryCacheOptions>)

Origine:
MemoryCache.cs
Origine:
MemoryCache.cs
Origine:
MemoryCache.cs

Crea una nuova istanza di 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))

Parametri

optionsAccessor
IOptions<MemoryCacheOptions>

Opzioni della cache.

Si applica a

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Origine:
MemoryCache.cs
Origine:
MemoryCache.cs
Origine:
MemoryCache.cs

Crea una nuova istanza di 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)

Parametri

optionsAccessor
IOptions<MemoryCacheOptions>

Opzioni della cache.

loggerFactory
ILoggerFactory

Factory usata per creare i logger.

Si applica a