Compartilhar via


MemoryDistributedCacheOptions Class

Definition

Specifies options for 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
Inheritance
MemoryDistributedCacheOptions

Constructors

MemoryDistributedCacheOptions()

Initializes a new instance of MemoryDistributedCacheOptions.

Properties

Clock

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

(Inherited from MemoryCacheOptions)
CompactionPercentage

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

(Inherited from MemoryCacheOptions)
CompactOnMemoryPressure
Obsolete.

Gets or sets a value that indicates whether the cache is compacted when the maximum size is exceeded.

(Inherited from MemoryCacheOptions)
ExpirationScanFrequency

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

(Inherited from MemoryCacheOptions)
SizeLimit

Gets or sets the maximum size of the cache.

(Inherited from MemoryCacheOptions)
TrackLinkedCacheEntries

Gets or sets a value that indicates whether linked entries are tracked.

(Inherited from MemoryCacheOptions)
TrackStatistics

Gets or sets a value that indicates whether memory cache statistics are tracked.

(Inherited from MemoryCacheOptions)

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.

(Inherited from MemoryCacheOptions)

Applies to