试用
Otter是一款基于Go语言的高性能内存缓存服务,主要包括以下特性:
- Simple API: Just set the parameters you want in the builder and enjoy
- Autoconfiguration: Otter is automatically configured based on the parallelism of your application
- Generics: You can safely use any comparable types as keys and any types as values
- TTL: Expired values will be automatically deleted from the cache
- Cost-based eviction: Otter supports eviction based on the cost of each item
- Excellent throughput: Otter is currently the fastest cache library with a huge lead over the competition
- Great hit ratio: New S3-FIFO algorithm is used, which shows excellent results
Otter & Friends
- caffeine: Java版 https://github.com/ben-manes/caffeine
- moka: Rust版 https://github.com/moka-rs/moka