本地缓存

1. Guava

github
google的开源本地缓存

  • 堆内缓存
    • 需要考虑GC问题
    • 不用考虑序列化和反序列化问题

2. caffeine

github
Caffeine provides an in-memory cache using a Google Guava inspired API. The improvements draw on our experience designing Guava's cache and ConcurrentLinkedHashMap.
基于guava

  • 堆内缓存
    • 需要考虑GC问题
    • 不用考虑序列化和反序列化问题

3. OHC - An off-heap-cache

github

  • 堆外缓存
    • 不用考虑GC
    • 需要考虑序列化和反序列化问题
posted @ 2023-01-28 10:18  Eiffelzero  阅读(34)  评论(0)    收藏  举报