Redis, Caching, Cache Invalidation, Distributed Cache, Cache Coherence.
By Cache-Aside: Before fetching data after fetching from database, update the cache. @Service public class ProductService { @Autowired private ProductRepository productRepository; @Autowired private StringRedisTemplate redisTemplate; @Async public void updateProductPriceInCache(Long productId,