为什么Spring框架不赞成使用Guava缓存? [英] Why did Spring framework deprecate the use of Guava cache?
问题描述
我想在guava缓存中使用spring-cache,但是我发现guava缓存已被spring官方文档标记为已弃用.我想知道为什么,他们没有给出任何解释.
I want to use spring-cache with guava cache, but I find guava cache has been marked deprecated by spring official document.I wonder to know why, they didn't give some explanations.
推荐答案
Spring项目决定批准改用咖啡因缓存.
Spring project decided to endorse a switch to Caffeine cache.
咖啡因取代 积极维护的Google Guava库中的缓存支持 独立形式的Java 8+版本.
Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form.
您可以在此处找到有关Spring跟踪器的决定的相关问题: https://jira. spring.io/browse/SPR-13797
You can find the relevant issue with the decision on Spring's tracker here: https://jira.spring.io/browse/SPR-13797
spring框架github存储库中的相关提交为: https://github.com com/spring-projects/spring-framework/commit/2bf9bc312ed1721b5978f88861c29cffc9ea407c
The relevant commit in spring framework github repo is: https://github.com/spring-projects/spring-framework/commit/2bf9bc312ed1721b5978f88861c29cffc9ea407c
这篇关于为什么Spring框架不赞成使用Guava缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!