Table of Contents

Class MemoryCacheOption

Namespace
Arc4u.Configuration.Memory
Assembly
Arc4u.Caching.dll

The options of a memory cache.

public class MemoryCacheOption
Inheritance
MemoryCacheOption
Inherited Members

Properties

CompactionPercentage

Gets or sets the fraction of the entries removed when the size limit is reached. Default is 0.2.

public double CompactionPercentage { get; set; }

Property Value

double

SerializerName

Gets or sets the name of the IObjectSerialization registered with this key to use; when empty or not found, the default serializer is used.

public string? SerializerName { get; set; }

Property Value

string

SizeLimitInBytes

Gets the maximum size of the cache, in bytes: SizeLimitInMB times 1,048,576.

public long SizeLimitInBytes { get; }

Property Value

long

SizeLimitInMB

Gets or sets the maximum size of the cache, in megabytes. Default is 100.

public long SizeLimitInMB { get; set; }

Property Value

long