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

Note: This package is in the dangerous land of 0.x.y versions and may be subject to breaking changes with minor version increments.

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.2.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

nr.caching-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nr.caching-0.2.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for nr.caching-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9955369a11aba136cd8d75d8e24149ea372bafdbe3bd86157375fc3494a3328c
MD5 cd0496a0cb23973917d58b3e06e04a56
BLAKE2b-256 732e461b12f61c2929461cafca7785a28215ed84606d8387c7fc627d2f589d19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nr.caching-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for nr.caching-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23dfb327f5c370bb071415b9fb842fe1002f81cf859270e53ed0d33a9750c82f
MD5 0cd7a5eb7196a92c058d7b092d017ccb
BLAKE2b-256 a028cb76bd9ac364bf638e4f27209e395ce9e3a30ca418b70803104817b14342

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