一个高性能的 Go 缓存库
Otter 旨在提供卓越的开发者体验,同时保持高性能。它致力于弥补前代产品的不足,并借鉴了其他语言中高性能库(如 [Caffeine](https://github.com/ben-manes/caffeine))的设计理念。 ## 目录 - [功能特性](#features) - [用法](#usage) - [要求](#requirements) - [安装](#installation) - [示例](#示例) - [性能](#性能) - [吞吐量](#throughput) - [命中率](#hit-ratio) - [内存消耗](#memory-consumption) - [Projects using Otter](#projects) - [相关工作](#related-works) - [贡献](#contribute) - [许可证](#license) ## ✨ 功能特性 性能方面,Otter 提供: - [高命中率](https://maypok86.github.io/otter/performance/hit-ratio/) 覆盖所有工作负载类型,通过 [自适应 W-TinyLFU](https://dl.acm.org/citation.cfm?id=3274816) 实现 - [高吞吐量](https://maypok86.github.io/otter/performance/throughput/),在大多数工作负载类型的高竞争环境下表现出色 - 在所有缓存容量中,[内存开销](https://maypok86.github.io/otter/performance/memory-consumption/)最低之一 - 基于争用/并行性和工作负载模式的自动数据结构配置 Otter 还提供了一个高度可配置的缓存 API,可支持以下任意组合的可选功能: - 根据大小进行 [驱逐](https://maypok86.github.io/otter/user-guide/v2/features/eviction/#size-based),当超出最大值时 - 条目的基于时间 [过期](https://maypok86.github.io/otter/user-guide/v2/features/eviction/#time-based),自上次访问或上次写入以来的时间 - 将条目自动加载到缓存中 (https://maypok86.github.io/otter/user-guide/v2/features/loading/) - [Asy
暂无开放 Issues,或尚未同步最近议题。