Ehcache vs Guava vs Caffeine:

不同缓存比较与方案

Ehcache:

一般用做本地缓存,支持持久化,性能没有Caffeine好。

Caffeine:

号称高性能缓存,性能最好,可以理解为Guava升级版。

Redis:

分布式缓存,支持持久化,性能比本地缓存差一点。

目前方案:

Caffeine用作一级缓存,Redis用作二级缓存。

或者Ehcache->Caffeine->Redis

 

 

相关文章:

  • 2022-02-20
  • 2022-12-23
  • 2021-05-22
  • 2021-04-26
  • 2021-07-02
  • 2021-04-18
  • 2021-11-26
猜你喜欢
  • 2021-12-27
  • 2021-08-03
  • 2021-09-08
  • 2022-12-23
  • 2021-08-01
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案