如何在集群环境中管理 spring 缓存

how to manage spring cache in cluster environment

我正在尝试使用 spring 为我的应用程序构建缓存服务。需要从数据库填充缓存。

我的应用程序在三个节点上运行,并且希望所有三个节点都与缓存同步。如果一个节点在缓存中获得更新值,它应该通知其他节点。

我看了Spring Cache abstration,里面没有讲集群环境下的缓存。

有没有办法将缓存通知传播到其他节点?

查看使用 Spring 分布式缓存的 memcached 插件。

https://github.com/jacobhe/spring-boot-tomcat-memcached