Registry / benchflow-ai

benchflow-ai/skillsbench/cache-policy-comparison

Compare and implement eviction policies (LRU, LFU, FIFO, S3FIFO, ARC) for bounded-capacity caches. Use when choosing or implementing an eviction policy for a buffer pool, page cache, CDN edge, or LLM KV cache, or when writing a replay simulator that supports multiple policies. Clarifies recency vs frequency semantics, queue topology, saturating counters, ghost buffers, and the second-chance rule that distinguishes modern FIFO-family policies from classic LRU.

Agent skill · version 0.0.0-main.1794330939.gf860ecf · from benchflow-ai/skillsbench

Install

npx yarkr-cli add skill:benchflow-ai/skillsbench/cache-policy-comparison

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/cache-policy-comparison
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:benchflow-ai/skillsbench/cache-policy-comparison

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:benchflow-ai/skillsbench/cache-policy-comparison

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.