Expand description
Auto-refresh functionality for frequently accessed cache entries.
This module provides enterprise-grade auto-refresh capabilities that proactively refresh frequently-accessed cache entries before they expire, reducing cache misses and latency.
§Architecture
AccessTracker: Lock-free access frequency tracking with time-decayRefreshMetadata: Minimal request reconstruction dataAutoRefreshConfig: Configuration for auto-refresh behaviorRefreshManager: Background task orchestration with graceful shutdown
§Safety
- Zero panics in production code paths
- Graceful error handling and degradation
- Proper resource cleanup on Drop
- Thread-safe and async-safe
Structs§
- Access
Tracker - Tracks access frequency for cache keys.
- Auto
Refresh Config - Configuration for auto-refresh functionality.
- Refresh
Manager - Manages the auto-refresh background task and state.
- Refresh
Metadata - Metadata needed to reconstruct a request for auto-refresh.
Traits§
- Refresh
Callback - Callback trait for triggering refresh operations.
Type Aliases§
- Refresh
Future - Future type for refresh operations.
- Refresh
Result - Result type for refresh operations.