MemoryCacheOptions 類別

定義

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

屬性

Clock
CompactionPercentage

取得或設定超過大小上限時要壓縮的快取數量。Gets or sets the amount to compact the cache by when the maximum size is exceeded.

CompactOnMemoryPressure

取得或設定連續掃描過期項目間的時間長度下限。Gets or sets the minimum length of time between successive scans for expired items.

ExpirationScanFrequency

取得或設定連續掃描過期項目間的時間長度下限。Gets or sets the minimum length of time between successive scans for expired items.

SizeLimit

取得或設定快取的大小上限。Gets or sets the maximum size of the cache.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IOptions<MemoryCacheOptions>.Value

適用於