Skip to main content

Module cache

Module cache 

Source
Expand description

Generic cache implementation with lock poisoning recovery.

This module provides a thread-safe caching system with automatic cleanup, processing locks, and validation capabilities.

Structs§

CacheStats
Aggregate statistics for a xberg cache directory.
GenericCache
Thread-safe, filesystem-backed cache with automatic LRU-style eviction.

Functions§

clear_cache_directory
Delete every file in cache_dir, returning the count and total size (MB) removed.
get_cache_metadata
Return aggregate statistics for the cache directory at cache_dir.