java - JCache API usage with invalidation clustered cache -


clustered invalidation key-value caches sending remove commands on network. when value of key changed or removed on 1 node remove command sent key every other node need data persistent store (or re-calculate it) next time need it.

my question is: how defined based on javax.cache.cache interface? there put, putifabsent, replace, ... functions there.

using infinispan-jcache not have behaviour when same key exists on 2 different node. asked same question on user forum @ https://community.jboss.org/thread/228039 think more common question jsr-107 implementations affected.

i checked draft specification not find clustering , invalidation there.

the way infinispan working correct. invalidation means when node receives put/replace/putifabsent/remove calls, send message other nodes remove entry. so, when entry stored in cache2, it's removed cache1. doesn't verify if value same or not.

jsr-107 not specify how caches should behave in cluster. jsr-107 focuses on local caches. behaviour of infinispan caches, under jcache api, invalidated, distributed , replicated caches specific infinispan.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -