不同緩存比較與方案

Ehcache vs Guava vs Caffeine: Ehcache: 一般用做本地緩存,支持持久化,性能沒有Caffeine好。 Caffeine: 號稱高性能緩存,性能最好,可以理解爲Guava升級版。 Redis: 分佈式緩存,支持持久化,性能比本地緩存差一點。 目前方案: Caffeine用作一級緩存,Redis用作二級緩存。 或者Ehcache->Caffeine->Redis
相關文章
相關標籤/搜索