JD Tech
Feb 19, 2025 · Backend Development
Understanding the Design and Implementation of Caffeine Cache
This article provides a comprehensive walkthrough of Caffeine cache's architecture, explaining its fixed-size eviction policy, underlying data structures such as ConcurrentHashMap, MPSC buffers, Count‑Min Sketch frequency tracking, and the dynamic window‑probation‑protected zones, while detailing key methods like put, getIfPresent, and maintenance.
ConcurrencyCount-Min SketchEviction
0 likes · 71 min read