LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

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-09

Capabilities

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

Source

  • Spec: SKILL.md
cache eviction
LRU
LFU
FIFO
S3FIFO
cache replay
hit rate
residency analysis
Implement LRU eviction
Implement LFU eviction
Implement FIFO eviction
Implement S3FIFO eviction
Cache capacity
Access trace
Cache keys
Cache policy implementations
Replay comparison results
Hit-rate metrics