cachebox
The fastest memoizing and caching Python library written in Rust
Decision gist · record as of 2026-08-14
Yes. Cachebox is actively maintained, has no known vulnerabilities, supports current Python versions, and offers a permissive MIT license. The compiled-wheel distribution is straightforward on common platforms. Install it if you need fast, thread-safe caching with multiple eviction policies and minimal setup overhead—particularly valuable in high-traffic or compute-intensive applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; PyPy and CPython both supported.
- Medium install friction due to compiled wheels, but pre-built binaries are available for common platforms (macOS, Linux, Windows) and Python 3.10+.
- The package is actively maintained with a recent release (4 days old) and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2026-08-10 (4 days) · last repo commit 2026-08-12 · 425 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 14,576,959 downloads/mo, #1,225 on PyPI
Alternatives
Verify before relying
pip install cachebox
import cachebox
@cachebox.cached(cachebox.LRUCache(maxsize=128))
def expensive_function(x):
return x ** 2
result = expensive_function(5)- Whether the claimed 10-50x performance improvement over other caching libraries holds for your specific use case and cache size.
- Thread-safety guarantees under high concurrency loads in production environments.
- Behavior of cache eviction policies under memory pressure or with very large datasets.
What it is and what it does
Cachebox is a Rust-based caching library that accelerates Python applications by storing computed results in memory and reusing them on subsequent calls with identical arguments. It provides seven cache algorithms (FIFO, LRU, and others) and can be used either as a decorator for functions or as a standalone dictionary-like cache object. The library is designed to be thread-safe, have minimal memory overhead, and avoid cache stampede through distributed locking.
You would use cachebox when your application repeatedly accesses the same data or performs expensive computations, database queries, or API calls. It copies mutable objects (dict, list, set) by default, preventing accidental mutations from affecting cached results—a behavior that distinguishes it from Python's built-in functools.lru_cache. The package has zero Python dependencies and supports both synchronous and asynchronous functions.
Use it for
- Memoizing expensive mathematical or data-processing functions to avoid redundant computation.
- Caching database query results to reduce load and latency in web applications.
- Storing API responses to minimize external requests and manage rate-limit quotas.
- Accelerating machine learning inference by caching predictions for repeated input data.
- Reducing rendering time in web frameworks by caching generated HTML or template results.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Cachebox is actively maintained, has no known vulnerabilities, supports current Python versions, and offers a permissive MIT license. The compiled-wheel distribution is straightforward on common platforms. Install it if you need fast, thread-safe caching with multiple eviction policies and minimal setup overhead—particularly valuable in high-traffic or compute-intensive applications.
Install
cachebox on PyPI
Before you install
Medium install friction due to compiled wheels, but pre-built binaries are available for common platforms (macOS, Linux, Windows) and Python 3.10+. The package is actively maintained with a recent release (4 days old) and no known vulnerabilities.
Requires Python 3.10 or later; PyPy and CPython both supported.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install cachebox
import cachebox
@cachebox.cached(cachebox.LRUCache(maxsize=128))
def expensive_function(x):
return x ** 2
result = expensive_function(5)
Verify before relying
- Whether the claimed 10-50x performance improvement over other caching libraries holds for your specific use case and cache size.
- Thread-safety guarantees under high concurrency loads in production environments.
- Behavior of cache eviction policies under memory pressure or with very large datasets.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 14,576,959 / month, #1,225 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTopic :: Software Development :: LibrariesTyping :: Typed |
Evidence: cachebox-6.2.5-cp310-cp310-macosx_10_12_x86_64.whl; cachebox-6.2.5-cp310-cp310-macosx_11_0_arm64.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cachebox-6.2.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; cachebox-6.2.5-cp310-cp310-musllinux_1_2_aarch64.whl; cachebox-6.2.5-cp310-cp310-musllinux_1_2_armv7l.whl; cachebox-6.2.5-cp310-cp310-musllinux_1_2_i686.whl; cachebox-6.2.5-cp310-cp310-musllinux_1_2_x86_64.whl; cachebox-6.2.5-cp310-cp310-win32.whl; cachebox-6.2.5-cp310-cp310-win_amd64.whl; cachebox-6.2.5-cp311-cp311-macosx_10_12_x86_64.whl; cachebox-6.2.5-cp311-cp311-macosx_11_0_arm64.whl; cachebox-6.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; cachebox-6.2.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; cachebox-6.2.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; cachebox-6.2.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fast python caching library”
- cacheboxCachebox is a high-performance in-memory caching library written in…
- jiterA fast JSON parser that converts bytes into Python objects, offering…
- pylibmcpylibmc is a Python client for memcached, the distributed…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also cacheout · cachetools · memoization · cachey · theine · async-lru · soldr · cachetools-async · onecache · pytest-antilru