【发布时间】:2017-11-14 09:46:25
【问题描述】:
我是 Memcached 的新手。我需要使用 Memcached 配置我的 Spring Boot 应用程序。
我对该主题进行了很多研究,但找不到相同的文档。 默认情况下,Spring boot 使用 Concurrent HashMap 进行缓存,但是如何配置 Memcached。
我得到了这个 GitHub URL,但我不确定这是否是正确的方法,如果是,我该如何使用它。
https://github.com/sixhours-team/memcached-spring-boot
更新
我现在在我的项目中使用了这个https://github.com/bmatthews68/memcached-spring-boot-starter。
这样
@Override @Cacheable(value = "defaultCache")
public String customMethof() throws InterruptedException {
return "Testing";
}
但是当我执行获取 defaultCache 的 telnet 时,我什么也得不到请帮助
【问题讨论】:
标签: java caching spring-boot memcached