MemoryCacheOptions 類別

定義

指定的選項 MemoryCache

public ref class MemoryCacheOptions : Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::Memory::MemoryCacheOptions ^>
public class MemoryCacheOptions : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.Memory.MemoryCacheOptions>
type MemoryCacheOptions = class
    interface IOptions<MemoryCacheOptions>
Public Class MemoryCacheOptions
Implements IOptions(Of MemoryCacheOptions)
繼承
MemoryCacheOptions
衍生
實作

建構函式

MemoryCacheOptions()

指定的選項 MemoryCache

屬性

Clock

取得或設定快取用於到期的時鐘。

CompactionPercentage

取得或設定超過大小上限時要壓縮的快取數量。

CompactOnMemoryPressure
已淘汰.
已淘汰.

取得或設定連續掃描過期項目間的時間長度下限。

ExpirationScanFrequency

取得或設定連續掃描過期項目間的時間長度下限。

SizeLimit

取得或設定快取的大小上限。

TrackLinkedCacheEntries

取得或設定值,這個值表示是否要追蹤連結的專案。

TrackStatistics

取得或設定是否要追蹤記憶體快取統計數據。 預設為停用。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IOptions<MemoryCacheOptions>.Value

取得預設的已設定 TOptions 執行個體。

適用於