A stylized illustration of a radix tree with branching nodes and cache blocks

From‑Scratch Radix‑Tree KV Cache with Copy‑on‑Write Blocks and LRU Eviction in Pure Python

A practical, from‑scratch implementation of a prefix‑sharing KV cache with CoW blocks and LRU, built in pure Python to showcase systems‑level engineering on your CV.

November 23, 2026 · 11 min · 2271 words · martinuke0
Feedback