MemoryDistributedCacheOptions 类

定义

指定用于 MemoryDistributedCacheOptions. 的选项

public ref class MemoryDistributedCacheOptions : Microsoft::Extensions::Caching::Memory::MemoryCacheOptions
public class MemoryDistributedCacheOptions : Microsoft.Extensions.Caching.Memory.MemoryCacheOptions
type MemoryDistributedCacheOptions = class
    inherit MemoryCacheOptions
Public Class MemoryDistributedCacheOptions
Inherits MemoryCacheOptions
继承
MemoryDistributedCacheOptions

构造函数

名称 说明
MemoryDistributedCacheOptions()

初始化 的新 MemoryDistributedCacheOptions实例。

属性

名称 说明
Clock

获取或设置缓存用于过期的时钟。

(继承自 MemoryCacheOptions)
CompactionPercentage

获取或设置超过最大大小时缓存压缩的量。

(继承自 MemoryCacheOptions)
CompactOnMemoryPressure
已过时.

获取或设置一个值,该值指示是否在超出最大大小时压缩缓存。

(继承自 MemoryCacheOptions)
ExpirationScanFrequency

获取或设置连续扫描过期项目之间的最短时间长度。

(继承自 MemoryCacheOptions)
Name

获取或设置此缓存实例的名称。

(继承自 MemoryCacheOptions)
SizeLimit

获取或设置缓存的最大大小。

(继承自 MemoryCacheOptions)
TrackLinkedCacheEntries

获取或设置一个值,该值指示是否跟踪链接项。

(继承自 MemoryCacheOptions)
TrackStatistics

获取或设置一个值,该值指示是否跟踪内存缓存统计信息。

(继承自 MemoryCacheOptions)

显式接口实现

名称 说明
IOptions<MemoryCacheOptions>.Value

获取默认配置的 TOptions 实例。

(继承自 MemoryCacheOptions)

适用于