Skip to content

Commit

Permalink
Merge pull request #455 from arthurprs/patch-1
Browse files Browse the repository at this point in the history
Update QuickCache table in README.md
  • Loading branch information
tatsuya6502 authored Sep 1, 2024
2 parents a4171b2 + 570b702 commit c948f22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ and can be overkill for your use case. Sometimes simpler caches like

The following table shows the trade-offs between the different cache implementations:

| Feature | Moka v0.12 | Mini Moka v0.10 | Quick Cache v0.3 |
| Feature | Moka v0.12 | Mini Moka v0.10 | Quick Cache v0.6 |
|:------- |:---- |:--------- |:----------- |
| Thread-safe, sync cache ||||
| Thread-safe, async cache ||||
| Non-concurrent cache ||||
| Bounded by the maximum number of entries ||||
| Bounded by the total weighted size of entries ||||
| Near optimal hit ratio | ✅ TinyLFU | ✅ TinyLFU |CLOCK-Pro |
| Near optimal hit ratio | ✅ TinyLFU | ✅ TinyLFU |S3-FIFO |
| Per-key, atomic insertion. (e.g. `get_with` method) ||||
| Cache-level expiration policies (time-to-live and time-to-idle) ||||
| Per-entry variable expiration ||||
| Eviction listener ||| |
| Eviction listener ||| ✅ (via lifecycle hook) |
| Lock-free, concurrent iterator ||||
| Lock-per-shard, concurrent iterator ||||

| Performance, etc. | Moka v0.12 | Mini Moka v0.10 | Quick Cache v0.3 |
| Performance, etc. | Moka v0.12 | Mini Moka v0.10 | Quick Cache v0.6 |
|:------- |:---- |:--------- |:----------- |
| Small overhead compared to a concurrent hash table ||||
| Does not use background threads | ❌ → ✅ Removed from v0.12 |||
Expand Down

0 comments on commit c948f22

Please sign in to comment.