multilevel-cache-spring-boot-starter icon indicating copy to clipboard operation
multilevel-cache-spring-boot-starter copied to clipboard

想问下 doPut方法中本地缓存是更新,其余节点咖啡因缓存都是clear是为啥

Open BrighterAmmo opened this issue 2 years ago • 1 comments

image push方法是发布订阅的方式通知其他节点删除本地缓存,但是执行put方法的节点是做本地缓存的更新。为啥当前节点本地缓存和其余节点的本地缓存的操作要不一样呢? 主要想问下是出于哪种考虑

BrighterAmmo avatar Apr 11 '23 09:04 BrighterAmmo

任何更新操作都应该清掉其他节点的本地缓存。 只有节点读的时候才会写到本地缓存。 a节点更新,b节点也更新的话,还得考虑消息顺序。

springboot4 avatar Aug 16 '24 07:08 springboot4