I have hazelcast running in kubernetes in a cluster.
I want to make sure, once someone changes a thing lets say in a PriceCatalog, hazelcast must be evicted immediately(or configurable) of the all the caches related.
Imagine there is price change on a product, which will take place in 24 hours.
Waiting Time2Live is not an option, there can be time windows that old price will be applied, which will be broken.
Is there a way to evict the caches on given timestamp? Or easily manually evict all the caches related?
You can do better than just evicting entities on a change by using Cache-Ahead.
I suggest you read this post where I explain how to set up a cache that's always in sync with the database.