MemoryDistributedCacheOptions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定 的选项 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 的新实例。 |
属性
Clock |
获取或设置缓存用于过期的时钟。 (继承自 MemoryCacheOptions) |
CompactionPercentage |
获取或设置在超出最大大小时要压缩的缓存量。 (继承自 MemoryCacheOptions) |
CompactOnMemoryPressure |
已过时.
获取或设置连续扫描过期项之间的最小时间长度。 (继承自 MemoryCacheOptions) |
ExpirationScanFrequency |
获取或设置连续扫描过期项之间的最小时间长度。 (继承自 MemoryCacheOptions) |
SizeLimit |
获取或设置缓存的最大大小。 (继承自 MemoryCacheOptions) |
TrackLinkedCacheEntries |
获取或设置一个值,该值指示是否跟踪链接条目。 (继承自 MemoryCacheOptions) |
TrackStatistics |
获取或设置是否跟踪内存缓存统计信息。 默认已禁用。 (继承自 MemoryCacheOptions) |
方法
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
GetType() |
获取当前实例的 Type。 (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
ToString() |
返回表示当前对象的字符串。 (继承自 Object) |
显式接口实现
IOptions<MemoryCacheOptions>.Value |
获取默认的已配置的 |