Skip to main content

A collection of cache libraries in the same API interface.

Project description

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

Project details


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.15.0.tar.gz (113.0 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.15.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cachelib-0.15.0.tar.gz
Algorithm Hash digest
SHA256 40a387c42d12e90c8a1a2cb87dedcc34fd9143a5b2c7f2daed3d4c56ebf7bdfc
MD5 208f98eb376abdb384b6382a608b30dc
BLAKE2b-256 2ad39d7dbdcbea646f0c31677a19b31b752056af6451de88868370f41ed7c265

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachelib-0.15.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.15.0-py3-none-any.whl.

File metadata

  • Download URL: cachelib-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 23.7 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.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a226c9856a48f1666cdb107fc4573171c1c820cb3fd2528a57f81fde8170e5
MD5 09f565b5d5d59bc32ffe9810e8747811
BLAKE2b-256 fdd2c629e15fb43079507a9ad0cca27ee038a60e21397d11277b4e507f0480a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cachelib-0.15.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.

Supported by

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