在开发中缓存具体如何实现?

千锋教育

本地缓存

  • 成员变量或局部变量实现, 比如map
  • 静态变量实现
  • Ehcache
  • Guava Cache


分布式缓存

  • Redis集群+ Spring Cache注解方式