Tag

CacheManager

1 views collected around this technical thread.

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.

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