简体   繁体   English

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

[英]How do I use Spring's @Cacheable with Aerospike as the cache?

I just want to use Aerospike as the backing cache for Spring CacheManager .我只想使用Aerospike作为Spring CacheManager的后备缓存。 Should I use spring data aerospike when I don't intend to use Aerospike as a data-store but only as a cache?当我不打算将Aerospike用作数据存储而仅用作缓存时,我应该使用 spring data Aerospike吗?

Is there any implementation available similar to HazelcastCacheManager or do I need to write my own?是否有任何类似于HazelcastCacheManager可用实现,或者我需要编写自己的实现吗? Any help is appreciated.任何帮助表示赞赏。

Found this implementation for Aerospike Cache Manager.为 Aerospike 缓存管理器找到了这个实现。

https://github.com/shaileshmishra008/spring-cache-aerospike https://github.com/shaileshmishra008/spring-cache-aerospike

I was able to write a version using this project as a reference.我能够使用这个项目作为参考编写一个版本。

There were some big changes in the Cache area in Spring Data Aerospike - starting from versions 2.5.0/3.0.0.从 2.5.0/3.0.0 版本开始,Spring Data Aerospike 中的缓存区域发生了一些重大变化。

A Medium article about Caching with Spring Boot and Aerospike: https://medium.com/aerospike-developer-blog/caching-with-spring-boot-and-aerospike-17b91267d6c一篇关于使用 Spring Boot 和 Aerospike 缓存的中篇文章: https ://medium.com/aerospike-developer-blog/caching-with-spring-boot-and-aerospike-17b91267d6c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM