cache-policy-comparison - Compare LRU, LFU, FIFO, and S3FIFO cache eviction
Implements four standard-library cache eviction policies and replays identical traces to compare hit rates and residency.
Tags
Updated: 2026-11-09Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Implement LRU eviction
- Implement LFU eviction
- Implement FIFO eviction
- Implement S3FIFO eviction
- Replay identical access traces
- Compare hit rates and residency
Inputs
- Cache capacity
- Access trace
- Cache keys
- Policy selection
Outputs
- Cache policy implementations
- Replay comparison results
- Hit-rate metrics
- Residency metrics
Requirements
- CPython 3.12 or later
- Python standard library
- Optional mypy or pyright
- Windows PowerShell for Windows commands
