Partager via


MemoryDistributedCache Constructeurs

Définition

Surcharges

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Crée une instance MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Crée une instance MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

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

Crée une instance 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))

Paramètres

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Options du cache.

S’applique à

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

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

Crée une instance 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)

Paramètres

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

Options du cache.

loggerFactory
ILoggerFactory

Fabrique d’enregistreurs d’événements à créer ILogger utilisée pour journaliser les messages.

S’applique à