CacheLib
A collection of cache libraries in the same API interface. Extracted from Werkzeug.
Supported backends include:
- DynamoDbCache (DynamoDB)
- FileSystemCache (file based)
- MemcachedCache (Memcached)
- MongoDbCache (MongoDB)
- RedisCache (Redis)
- SimpleCache (in-memory, single-process)
- UWSGICache (uWSGI)
- ValkeyCache (Valkey)
Pallets Ecosystem
Installation
Install from PyPI:
pip install cachelib
A Minimal Example
from cachelib import SimpleCache
# Create a cache instance
cache = SimpleCache()
# Set a value in the cache
cache.set("my_key", "my_value")
# Retrieve the value from the cache
value = cache.get("my_key")
print(value) # Output: my_value
# Delete the value from the cache
cache.delete("my_key")
# Try to retrieve the deleted value
value = cache.get("my_key")
print(value) # Output: None
Metadata
Release files for cachelib 0.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cachelib-0.17.0.tar.gz | 135.5 kB | With provenance | Details for cachelib-0.17.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cachelib-0.17.0-py3-none-any.whl | Python 3 | none | any | Details for cachelib-0.17.0-py3-none-any.whl |
Total release size: 163.8 kB
Release files / cachelib-0.17.0.tar.gz
| Download URL | cachelib-0.17.0.tar.gz |
|---|---|
| Size | 135.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3c7dc8d3c1132ab699681ffdf8a52d341d9425ac1401c538cf0b1d87b1677c8
|
|
BLAKE2b-256 checksum How to use checksums |
c6f4b20875916b83f68775093554ce2544b12255396ba69abd93d8903cce0feb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logRelease files / cachelib-0.17.0-py3-none-any.whl
| Download URL | cachelib-0.17.0-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f83909b6f78741c3a5d76d292d13bf24964ffb13e00ea1d18f92e20599766ce0
|
|
BLAKE2b-256 checksum How to use checksums |
f5879110494f2816d3f2907ac9a0a0a5387f34bc4fa9755721ad09f0a2c99e9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logSecurity for cachelib 0.17.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cachelib-0.17.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.