Bagikan melalui


MemoryCache Konstruktor

Definisi

Overload

MemoryCache(IOptions<MemoryCacheOptions>)

Membuat instans baru MemoryCache .

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Membuat instans baru MemoryCache .

MemoryCache(IOptions<MemoryCacheOptions>)

Sumber:
MemoryCache.cs
Sumber:
MemoryCache.cs
Sumber:
MemoryCache.cs

Membuat instans baru 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))

Parameter

optionsAccessor
IOptions<MemoryCacheOptions>

Opsi cache.

Berlaku untuk

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Sumber:
MemoryCache.cs
Sumber:
MemoryCache.cs
Sumber:
MemoryCache.cs

Membuat instans baru 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)

Parameter

optionsAccessor
IOptions<MemoryCacheOptions>

Opsi cache.

loggerFactory
ILoggerFactory

Pabrik yang digunakan untuk membuat pencatat.

Berlaku untuk