如何使用带有Aerospike的Spring的@Cacheable作为缓存?

时间:2019-08-20 18:39:55

标签: java spring spring-boot aerospike

我只想将Aerospike用作Spring CacheManager的后备缓存。 当我不打算将Aerospike用作数据存储而仅用作缓存时,我应该使用spring data Aerospike吗?

是否有任何类似于HazelcastCacheManager的实现,还是我需要编写自己的实现? 任何帮助表示赞赏。

2 个答案:

答案 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