facebook/CacheLib
Pluggable in-process caching engine to build and scale high performance services observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 6.0
- age_days: 2476
- days_rel: 9
- days_push: 7
- n_releases_24m: 15
Adoption not part of the score
1585 stars · 322 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CacheLib is a C++ library providing a pluggable, thread-safe in-process caching engine with transparent DRAM and SSD tiering. It includes CacheBench, a benchmarking and stress-testing tool for evaluating cache heuristics, configurations, and hardware choices.
Use cases
- add high-throughput in-process caching to a C++ backend service
- cache data across DRAM and SSD transparently
- replace a multi-gigabyte evictable hash map with a scalable cache
- benchmark and compare cache eviction policies like LRU, TinyLFU, and 2Q
- evaluate hardware trade-offs between DRAM-only and hybrid DRAM+SSD caches
- persist cache contents across process restarts via shared memory
- stress test cache implementations for correctness and performance issues
When to choose
- your service caches gigabytes of data and needs strict memory bounds
- you need concurrent, zero-copy cache access with low overhead
- you want automatic pool rebalancing and workload-adaptive tuning
- you need to evaluate cache heuristics or hardware choices with realistic workloads
When to avoid
- you need a distributed cache with consistency or sharding across hosts
- you want a simple drop-in key-value store without C++ integration work
- your workload is small enough for a plain in-memory map
- you need a standalone cache server rather than an embedded library
Facets
library · maturity active
caching benchmarking concurrency databases performance backend developer-tools cpp self-hosted in-process-cache dram ssd-caching hybrid-cache eviction-policies thread-safe facebook cache-persistence linux
6 sources
- readme: https://github.com/facebook/CacheLib · fetched 2026-08-28 · 77b01944079a
- homepage: https://www.cachelib.org · fetched 2026-08-29 · de7dc56aef87
- site_page: https://cachelib.org/docs/installation · fetched 2026-08-29 · 6f70ef42bfe2
- site_page: https://cachelib.org/docs · fetched 2026-08-29 · 32af9595157b
- site_page: https://cachelib.org/docs/Cache_Library_User_Guides/Cachebench_Overview · fetched 2026-08-29 · e201e768c249
- site_page: https://cachelib.org/docs/Cache_Library_Architecture_Guide/overview_a_random_walk · fetched 2026-08-29 · 1714ab5209af
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| facebook/CacheLib | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="facebook/CacheLib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem