Skip to main content

A simple key-value caching API with default implementations for an SQLite3 storage backend and a JSON convenience layer.

Project description

nr.caching

A simple key-value caching API with default implementations for an SQLite3 storage backend and a JSON convenience layer.

Quickstart

from nr.caching.sqlite import SqliteStore
from nr.caching.json import JsonCache

cache = JsonCache(SqliteStore('.cache.db'))
data = cache.loading('my-namespace', parameters, lambda: expensive_function(*parameters))

Copyright © 2021 Niklas Rosenstein

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

nr.caching-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

nr.caching-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nr.caching-0.1.0.tar.gz.

File metadata

  • Download URL: nr.caching-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for nr.caching-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe78100f6b84e5d3793f01466d8ca88a786947d3dd18423978b26781b7528844
MD5 24cf002258688034da06d83595556764
BLAKE2b-256 4a83096b63363dc49563cbae134e77b538b74bb9e91ffdcb02095286f6b9374d

See more details on using hashes here.

File details

Details for the file nr.caching-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nr.caching-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for nr.caching-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29675b95bd5a02961e5801f8b4f39e1bb9287f967ccc9087a1a44b43c7045b0d
MD5 10f27d9b5be6442b06023b97b1df78f5
BLAKE2b-256 6de7378665bb107f7ac57a481b6a8347462daf75abcd01c63d0865412b45639e

See more details on using hashes here.

Supported by

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