Redis, Caching, Cache Invalidation, Distributed Cache, Cache Coherence.
product.setPrice(newPrice); productRepository.save(product); } // Publish a message to Redis for cache invalidation String message = productId.toString(); redisTemplate.convertAndSend(inventoryChannel, message); } public BigDecimal getProductPrice(Long productId) { String cacheKey =