作者:我家在波力牧场 | 来源:互联网 | 2023-02-01 14:12
我是Memcached的新手.我需要使用Memcached配置我的spring启动应用程序.
我对这个主题进行了很多研究,但我找不到同样的文档.默认情况下,Spring引导使用Concurrent HashMap进行缓存,但如何配置Memcached.
我有这个GitHub URL,但我不确定这是否是正确的方法,如果是这样,我如何使用相同的.
https://github.com/sixhours-team/memcached-spring-boot
https://www.javacodegeeks.com/2013/06/simple-spring-memcached-spring-caching-abstraction-and-memcached.html
更新
我现在在我的项目中使用了这个https://github.com/bmatthews68/memcached-spring-boot-starter.
像这样
@Override @Cacheable(value = "defaultCache")
public String customMethof() throws InterruptedException {
return "Testing";
}
但当我做一个telnet的默认缓存我什么也得不到请帮助