MemoryCacheOptions MemoryCacheOptions MemoryCacheOptions MemoryCacheOptions Class

Definition

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
MemoryCacheOptionsMemoryCacheOptionsMemoryCacheOptionsMemoryCacheOptions
Derived
Implements

Constructors

MemoryCacheOptions() MemoryCacheOptions() MemoryCacheOptions() MemoryCacheOptions()

Properties

Clock Clock Clock Clock
CompactionPercentage CompactionPercentage CompactionPercentage CompactionPercentage

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

CompactOnMemoryPressure CompactOnMemoryPressure CompactOnMemoryPressure CompactOnMemoryPressure

Gets or sets the minimum length of time between successive scans for expired items.

ExpirationScanFrequency ExpirationScanFrequency ExpirationScanFrequency ExpirationScanFrequency

Gets or sets the minimum length of time between successive scans for expired items.

SizeLimit SizeLimit SizeLimit SizeLimit

Gets or sets the maximum size of the cache.

Explicit Interface Implementations

IOptions<MemoryCacheOptions>.Value IOptions<MemoryCacheOptions>.Value IOptions<MemoryCacheOptions>.Value IOptions<MemoryCacheOptions>.Value

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to