Why did Spring framework deprecate the use of Guava cache?

前端 未结 1 1825
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 10:15

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 expla

相关标签:
1条回答
  • 2020-11-29 10:35

    Spring project decided to endorse a switch to Caffeine cache.

    Caffeine supersedes the caching support in the Google Guava library with an actively maintained Java 8+ version in standalone form.

    You can find the relevant issue with the decision on Spring's tracker here: https://jira.spring.io/browse/SPR-13797

    The relevant commit in spring framework github repo is: https://github.com/spring-projects/spring-framework/commit/2bf9bc312ed1721b5978f88861c29cffc9ea407c

    0 讨论(0)
提交回复
热议问题