共用方式為


MemoryDistributedCache 建構函式

定義

多載

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

建立新的 MemoryDistributedCache 執行個體。

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

建立新的 MemoryDistributedCache 執行個體。

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs

建立新的 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))

參數

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

快取的選項。

適用於

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs
來源:
MemoryDistributedCache.cs

建立新的 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)

參數

optionsAccessor
IOptions<MemoryDistributedCacheOptions>

快取的選項。

loggerFactory
ILoggerFactory

用來 ILogger 記錄訊息的記錄器處理站。

適用於