Decision Workspace
lru-tokens vs tool-result-cache vs llm-response-cache
Side-by-side comparison of Rust crates
49
lru-tokens
experimentalv0.1.0
LRU cache where eviction is weighted by token count, not entry count. Bound a prompt cache by tokens (or any other size unit) instead of N entries. Zero deps.
48
tool-result-cache
experimentalv0.1.0
Content-addressable LRU cache for LLM agent tool calls. Same tool, same args -> same answer, returned from memory. Optional TTL, content-addressable on (tool_name, args) with canonical-JSON keys.
43
llm-response-cache
experimentalv0.1.0
In-memory LRU cache for LLM responses keyed by request hash
Core Metrics
| lru-tokens | tool-result-cache | llm-response-cache | |
|---|---|---|---|
| Health Score | 49 | 48 | 43 |
| Total Downloads | 13 | 12 | 9 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 1 | 1 | 1 |
| Last Updated | 9d ago | 1d ago | today |
| Age | 9d | 1d | 1d |
Health Breakdown
lru-tokens
Maintenance
12
Quality
15
Community
6
Popularity
1
Documentation
15
tool-result-cache
Maintenance
13
Quality
14
Community
5
Popularity
1
Documentation
15
llm-response-cache
Maintenance
13
Quality
14
Community
5
Popularity
1
Documentation
10
Technical Details
| lru-tokens | tool-result-cache | llm-response-cache | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 2 | 2 |
| Crate Size | 8KB | 17KB | 4KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.74 | 1.74 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •lru-tokens leads with a health score of 49/100, but none of the options score above 80.