【问题标题】:How do I use Spring's @Cacheable with Aerospike as the cache?如何使用 Spring 的 @Cacheable 和 Aerospike 作为缓存?
【发布时间】:2019-08-20 18:39:55
【问题描述】:

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

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

【问题讨论】:

  • 找到了这个github.com/shaileshmishra008/spring-cache-aerospike 项目。如果有人带着类似的问题来到这里。
  • 只要 stackoverflow 允许,请回答您自己的问题。我假设你发表评论是因为你现在被屏蔽了
  • 是的,现在发布,因为我现在已经解封了。

标签: java spring spring-boot aerospike


【解决方案1】:

为 Aerospike 缓存管理器找到了这个实现。

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

我能够使用这个项目作为参考编写一个版本。

【讨论】:

  • 你要把你的发布到 GitHub 上吗?
【解决方案2】:

从 2.5.0/3.0.0 版本开始,Spring Data Aerospike 中的缓存区域发生了一些重大变化。

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

【讨论】:

    猜你喜欢
    • 2015-04-05
    • 1970-01-01
    • 2018-02-07
    • 2017-06-01
    • 1970-01-01
    • 2021-08-22
    • 1970-01-01
    • 2012-08-20
    • 2015-05-02
    相关资源
    最近更新 更多