Condividi tramite


MemoryDistributedCache Costruttori

Definizione

Overload

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Crea una nuova istanza di MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Crea una nuova istanza di MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Origine:
MemoryDistributedCache.cs
Origine:
MemoryDistributedCache.cs
Origine:
MemoryDistributedCache.cs

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

Parametri

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Opzioni della cache.

Si applica a

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Origine:
MemoryDistributedCache.cs
Origine:
MemoryDistributedCache.cs
Origine:
MemoryDistributedCache.cs

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

Parametri

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Opzioni della cache.

loggerFactory
ILoggerFactory

La factory del logger da creare ILogger usata per registrare i messaggi.

Si applica a