Skip to main content

Module proxy_cache

Module proxy_cache 

Source
Expand description

Proxy cache management: LRU eviction, TTL-based staleness, and utilisation tracking.

Provides a simple in-memory cache that tracks proxy files by path, access time, and hit count. Eviction strategies include LRU (least-recently used), TTL (time-to-live), and LFU (least-frequently used).

Structs§

CacheEntry
A single entry in the proxy cache.
DiskBoundedCache
A disk-space-bounded LRU proxy cache that automatically evicts entries when the configured space limit would be exceeded.
DiskCacheStats
Statistics snapshot for a DiskBoundedCache.
ProxyCache
In-memory proxy cache with configurable capacity.

Enums§

CachePolicy
Eviction policy for the proxy cache.