我只想将Aerospike
用作Spring
CacheManager
的后备缓存。
当我不打算将Aerospike
用作数据存储而仅用作缓存时,我应该使用spring data Aerospike吗?
是否有任何类似于HazelcastCacheManager
的实现,还是我需要编写自己的实现?
任何帮助表示赞赏。
答案 0 :(得分:2)
找到了Aerospike Cache Manager的此实现。
https://github.com/shaileshmishra008/spring-cache-aerospike
我能够使用该项目作为参考来编写版本。
答案 1 :(得分:0)
从 2.5.0/3.0.0 版本开始,Spring Data Aerospike 中的缓存区域发生了一些重大变化。
一篇关于使用 Spring Boot 和 Aerospike 进行缓存的中篇文章: https://medium.com/aerospike-developer-blog/caching-with-spring-boot-and-aerospike-17b91267d6c