Tagged articles

CacheManager

4 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Jun 1, 2026 · Backend Development

Advanced SpringBoot Caching: How to Build a Custom CacheManager

The article explains why the default SpringBoot cache manager is insufficient for production, then walks through creating custom Caffeine and Redis CacheManager beans, configuring expiration, key prefixes, serialization, and multi‑level caching to solve issues like cache penetration, key collisions, and performance bottlenecks.

CacheCacheManagerCaffeine
0 likes · 11 min read
Advanced SpringBoot Caching: How to Build a Custom CacheManager
Programmer DD
Programmer DD
Jul 16, 2020 · Backend Development

How to Integrate EhCache into Spring Boot for Faster Data Access

This article explains how Spring Boot automatically detects cache providers, shows how to replace the default ConcurrentHashMap with EhCache by adding the dependency, configuring ehcache.xml, and verifying the CacheManager type through unit tests, providing complete code examples and step‑by‑step instructions.

Backend DevelopmentCacheManagerCaching
0 likes · 7 min read
How to Integrate EhCache into Spring Boot for Faster Data Access
Java Architecture Diary
Java Architecture Diary
Mar 24, 2019 · Backend Development

How to Extend Spring Cache for Multi‑Tenant Isolation and TTL

This article explains Spring's annotation‑based caching, analyzes why the default cache key collides in multi‑tenant scenarios, shows how to embed tenant identifiers into keys, and provides a custom CacheManager implementation that parses TTL from the cache name and applies it to Redis entries.

CacheManagerJavaMulti‑tenant
0 likes · 5 min read
How to Extend Spring Cache for Multi‑Tenant Isolation and TTL