Version 1



    As documentation states:

    Invalidation is a clustered mode that does not actually share any data at all, but simply aims to remove data that may be stale from remote caches. This cache mode only makes sense if you have another, permanent store for your data such as a database and are only using Infinispan as an optimization in a read-heavy system, to prevent hitting the database every time you need some state. If a cache is configured for invalidation rather than replication, every time data is changed in a cache other caches in the cluster receive a message informing them that their data is now stale and should be evicted from memory.


    Then there is a picture on which we see cache.put(K, V_new) aa a trigger for invalidation. Does cache.remove(K) would behave the same? or cache.get(K).setSomething()?