Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Enum

Syntax

Microsoft.OData.Mcp.Core.Configuration.CacheEvictionPolicy

Summary

Defines the cache eviction policies.

Remarks

Cache eviction policies determine which entries are removed from the cache when size or entry limits are reached. Different policies optimize for different access patterns and performance characteristics.

Values

NameValueDescription
LeastRecentlyUsed0Least Recently Used (LRU) eviction policy.
LeastFrequentlyUsed1Least Frequently Used (LFU) eviction policy.
FirstInFirstOut2First In, First Out (FIFO) eviction policy.
Random3Random eviction policy.
TimeToLive4Time-based eviction (shortest TTL first).