Redis, Caching, Cache Invalidation, Distributed Cache, Cache Coherence.
+ productId; redisTemplate.delete(cacheKey); } public BigDecimal getProductPrice(Long productId) { String cacheKey = "product:price:" + productId; String cachedPrice = redisTemplate.opsForValue().get(cacheKey); if (cachedPrice != null) { return new BigDecimal(cachedPrice); } // If not found in