https://github.com/maypok86/otter
推荐一下最近新出的缓存库 Otter ,代码上采用无锁结构提高并发能力,缓存策略上则采用 S3-FIFO ,根据 benchmark 来看命中率相当不错。虽然我不是作者但是因为在 Theine 下有大量讨论我就一直关注着
相关讨论: https://github.com/Yiling-J/theine-go/issues/29
Hacker news: https://news.ycombinator.com/item?id=38745070
最近一直忙着 Dart/Flutter 开发 app 所以 Go 用的少了,等以后有空而且 Otter 用户足够多后,我也许会参考一下把 Theine 也改成无锁结构