| Crates.io | breve | 
| lib.rs | breve | 
| version | 0.1.0 | 
| created_at | 2025-03-12 16:24:35.097543+00 | 
| updated_at | 2025-03-12 16:24:35.097543+00 | 
| description | In-memory cache implementation with Uno as the admission policy and S3-FIFO as the eviction policy | 
| homepage | |
| repository | https://github.com/PsiACE/breve | 
| max_upload_size | |
| id | 1589983 | 
| size | 60,155 | 
Breve is a cache implementation that combines lightweight machine learning with efficient eviction strategies. It uses Uno as the admission policy and S3-FIFO as the eviction policy. This project is inspired by TinyUFO (Cloudflare) and builds upon its foundation with significant improvements.
Uno is a lightweight machine learning algorithm designed to predict the access value of cache items. It consists of two main components:
S3-FIFO is an efficient cache eviction algorithm, which Breve enhances with the following improvements:
Separates cache into small and large queues for better handling of different access patterns
Uses access counting to optimize eviction decisions
Supports weight-aware cache management
There are a lot of really good caching libraries named in relation to coffee, so I chose to use Breve. Although I have been having two cappuccinos a day for the last few days.
Breve is particularly well-suited for:
Breve is licensed under the Apache 2.0 License. Same as TinyUFO.