Caching with Cache2K
summary
Cache2K is a tiny high-performance JVM in-memory cache that is already used in production and integrates with Kotlin and Spring Boot. Examples show a standalone cache with refresh-ahead expiry, capacity limits (e.g. 100 entries), and a loader callback that handles miss-and-populate logic; Spring integration uses a Cache2k SpringCacheManager and method-proxying so cache annotations work. A common gotcha requires a self-injection workaround to let internal method calls hit the proxy. Full samples live on GitHub.
AI-written summary · about
chapters (4)
related talks
50mCaching with Spring: Advanced Topics and Best Practices
40mSmarter Application Caching with Kotlin Flow
01h 02mJava Caching with JSR107 and tCache
44mHow to speed up your application using JCache
30mCaching patterns for lazy devs for lazy loading
53mLeveraging Caching For Cloud Native Applications
34mHigh Performance Cloud-Native Microservices
50mLet's talk about the cache!
