MemoryCacheOptions Class

Definition

Specifies options for 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)
Inheritance
MemoryCacheOptions
Derived
Implements

Constructors

MemoryCacheOptions()

Properties

Clock

Gets or sets the clock used by the cache for expiration.

CompactionPercentage

Gets or sets the amount to compact the cache by when the maximum size is exceeded.

CompactOnMemoryPressure
Obsolete.
Obsolete.

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.

TrackLinkedCacheEntries

Gets or sets a value that indicates whether to track linked entries.

TrackStatistics

Gets or sets whether to track memory cache statistics. Disabled by default.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IOptions<MemoryCacheOptions>.Value

Gets the default configured TOptions instance.

Applies to