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§
- Cache
Stats - Aggregate statistics for a xberg cache directory.
- Generic
Cache - 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.