| Port variant | v14 |
| Summary | Memoizing and caching library (3.14) |
| Package version | 5.2.3 |
| Homepage | https://github.com/awolverp/cachebox |
| Keywords | python |
| Maintainer | Python Automaton |
| License | Not yet specified |
| Other variants | v13 |
| Ravenports | Buildsheet | History |
| Ravensource | Port Directory | History |
| Last modified | 16 MAY 2026, 11:47:46 UTC |
| Port created | 16 MAY 2026, 11:47:46 UTC |
| single |
# Cachebox
*The fastest caching Python library written in Rust*
[**Releases**] |
[**Benchmarks**] |
[**Issues**]
[License]
[Release]
[Python Versions]
[Downloads]
-------
### What does it do?
You can easily perform powerful caching operations in Python as fast as
possible.
This can make your application a lot faster and it can be a good choice in
complex applications.
**Ideal for optimizing large-scale applications** with efficient,
low-overhead caching.
**Key Features:**
- ๐ Extremely fast (10-50x faster than other caching libraries --
[*benchmarks*])
- ๐ Minimal memory footprint (50% of standard dictionary memory usage)
- ๐ฅ Full-featured and user-friendly
- ๐งถ Completely thread-safe
- ๐ง Tested and correct
- **\[R\]** written in Rust for maximum performance
- ๐ค Compatible with Python 3.9+ (PyPy and CPython)
- ๐ฆ Supports 7 advanced caching algorithms
### Page Contents
- โ [**When do I need caching and `cachebox`?**]
- ๐ [**Why `cachebox`?**]
- ๐ง [**Installation**]
- ๐ก [**Preview**]
- ๐ [**Getting started**]
- โ๏ธ [**Incompatible changes**]
- ๐ [**Tips & Notes**]
### When do I need caching and `cachebox`?
- ๐ **Frequent Data Access** \
If you need to access the same data multiple times, caching can help
reduce the number of database queries or API calls, improving performance.
- ๐ **Expensive Operations** \
If you have operations that are computationally expensive, caching can
help reduce the number of times these operations need to be performed.
- ๐ **High Traffic Scenarios** \
If your application handles high traffic, caching can help reduce the
load on your server by reducing the number of requests that need to be
processed.
- #๏ธโฃ **Web Page Rendering** \
If you are rendering web pages, caching can help reduce the time it takes
to generate the page by caching the results of expensive rendering
operations. Caching HTML pages can speed up the delivery of static content.
- ๐ง **Rate Limiting** \
If you have a rate limiting system in place, caching can help reduce the
number of requests that need to be processed by the rate limiter. Also,
caching can help you to manage rate limits imposed by third-party APIs by
reducing the number of requests sent.
- ๐ค **Machine Learning Models** \
If your application frequently makes predictions using the same input
data, caching the results can save computation time.
### Why `cachebox`?
- **โก Rust** \
It uses the *Rust* language for high-performance.
- **๐งฎ SwissTable** \
It uses Google's high-performance SwissTable hash map. Credit to
[hashbrown].
- **โจ Low memory usage** \
It has very low memory usage.
- **โญ Zero Dependency** \
As we said, `cachebox` is written in Rust so you don't have to install any
other dependecies.
- **๐งถ Thread safe** \
It's completely thread-safe and uses locks to prevent problems.
- **๐ Easy To Use** \
You only need to import it and choose a cache implementation to use. It
will behave like a dictionary.
- **๐ซ Avoids Cache Stampede** \
It avoids [cache stampede] by using a distributed lock system.
|
| main | mirror://PYPI/c/cachebox |
| cr01 | mirror://CRATES/autocfg:1.4.0 |
| cr02 | mirror://CRATES/bitflags:2.9.0 |
| cr03 | mirror://CRATES/cc:1.2.40 |
| cr04 | mirror://CRATES/cfg-if:1.0.3 |
| cr05 | mirror://CRATES/fastrand:2.3.0 |
| cr06 | mirror://CRATES/find-msvc-tools:0.1.4 |
| cr07 | mirror://CRATES/hashbrown:0.14.5 |
| cr08 | mirror://CRATES/heck:0.5.0 |
| cr09 | mirror://CRATES/indoc:2.0.6 |
| cr10 | mirror://CRATES/libc:0.2.171 |
| cr11 | mirror://CRATES/libmimalloc-sys:0.1.44 |
| cr12 | mirror://CRATES/lock_api:0.4.14 |
| cr13 | mirror://CRATES/memoffset:0.9.1 |
| cr14 | mirror://CRATES/mimalloc:0.1.48 |
| cr15 | mirror://CRATES/once_cell:1.21.3 |
| cr16 | mirror://CRATES/parking_lot:0.12.5 |
| cr17 | mirror://CRATES/parking_lot_core:0.9.12 |
| cr18 | mirror://CRATES/portable-atomic:1.11.0 |
| cr19 | mirror://CRATES/proc-macro2:1.0.94 |
| cr20 | mirror://CRATES/pyo3:0.27.1 |
| cr21 | mirror://CRATES/pyo3-build-config:0.27.1 |
| cr22 | mirror://CRATES/pyo3-ffi:0.27.1 |
| cr23 | mirror://CRATES/pyo3-macros:0.27.1 |
| cr24 | mirror://CRATES/pyo3-macros-backend:0.27.1 |
| cr25 | mirror://CRATES/python3-dll-a:0.2.14 |
| cr26 | mirror://CRATES/quote:1.0.40 |
| cr27 | mirror://CRATES/redox_syscall:0.5.10 |
| cr28 | mirror://CRATES/scopeguard:1.2.0 |
| cr29 | mirror://CRATES/shlex:1.3.0 |
| cr30 | mirror://CRATES/smallvec:1.14.0 |
| cr31 | mirror://CRATES/syn:2.0.100 |
| cr32 | mirror://CRATES/target-lexicon:0.13.2 |
| cr33 | mirror://CRATES/unicode-ident:1.0.18 |
| cr34 | mirror://CRATES/unindent:0.2.4 |
| cr35 | mirror://CRATES/windows-link:0.2.0 |
| python-deepdiff:v14 | Deep difference and search of any object (3.14) |