다음을 통해 공유


MemoryCache 생성자

정의

오버로드

MemoryCache(IOptions<MemoryCacheOptions>)

MemoryCache 인스턴스를 만듭니다.

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

MemoryCache 인스턴스를 만듭니다.

MemoryCache(IOptions<MemoryCacheOptions>)

Source:
MemoryCache.cs
Source:
MemoryCache.cs

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))

매개 변수

optionsAccessor
IOptions<MemoryCacheOptions>

캐시의 옵션입니다.

적용 대상

MemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)

Source:
MemoryCache.cs
Source:
MemoryCache.cs

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)

매개 변수

optionsAccessor
IOptions<MemoryCacheOptions>

캐시의 옵션입니다.

loggerFactory
ILoggerFactory

로거를 만드는 데 사용되는 팩터리입니다.

적용 대상