Redis, Caching, Cache Invalidation, Distributed Cache, Cache Coherence.
MessageListener { @Autowired private StringRedisTemplate redisTemplate; @Override public void onMessage(Message message, byte[] pattern) { String productId = message.toString(); // Invalidate the cache entry for the given product String cacheKey = "product:price:" + productId;