Skip to main content

CacheLib

A collection of cache libraries in the same API interface. Extracted from Werkzeug.

Supported backends include:

Pallets Ecosystem

[!IMPORTANT]
This project is part of the Pallets Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cachelib-0.17.0.tar.gz (135.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cachelib-0.17.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file cachelib-0.17.0.tar.gz.

File metadata

  • Download URL: cachelib-0.17.0.tar.gz
  • Upload date:
  • Size: 135.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cachelib-0.17.0.tar.gz
Algorithm Hash digest
SHA256 f3c7dc8d3c1132ab699681ffdf8a52d341d9425ac1401c538cf0b1d87b1677c8
MD5 e57c5f1465e91fc49c91ef315fda545b
BLAKE2b-256 c6f4b20875916b83f68775093554ce2544b12255396ba69abd93d8903cce0feb

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachelib-0.17.0.tar.gz:

Publisher: publish.yaml on pallets-eco/cachelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cachelib-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: cachelib-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cachelib-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f83909b6f78741c3a5d76d292d13bf24964ffb13e00ea1d18f92e20599766ce0
MD5 7f3e4a7a5b23d3f6dc41e45e97e9c2d5
BLAKE2b-256 f5879110494f2816d3f2907ac9a0a0a5387f34bc4fa9755721ad09f0a2c99e9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachelib-0.17.0-py3-none-any.whl:

Publisher: publish.yaml on pallets-eco/cachelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 files

0.16.1

2 files

0.16.0

2 files

0.15.4

2 files

0.15.3

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page