Skip to main content

Module dedup_cache

Module dedup_cache 

Source
Expand description

LRU cache for deduplication hash lookups.

This module provides a fixed-capacity Least Recently Used (LRU) cache that accelerates repeated hash lookups during deduplication scans. When the cache is full, the least recently accessed entry is evicted.

§Key Types

  • LruCache - Generic fixed-capacity LRU cache
  • HashCache - Specialised cache mapping file paths to hash digests
  • CacheStats - Hit/miss statistics for the cache
  • DedupSessionCache - Session cache for thumbnails and fingerprints

Structs§

CacheEntry
A single entry in the DedupSessionCache.
CacheStats
Statistics for cache performance.
DedupSessionCache
Session-scoped cache for decoded thumbnails and fingerprints.
HashCache
Specialised hash cache mapping file path strings to hash digest strings.
LruCache
A generic fixed-capacity LRU (Least Recently Used) cache.