Skip to main content

py-redis-cachetools

cachetools core + redis

Requirements:

redis 3.5.3

Installation:

pip install py-redis-cachetools

env variables:

REDIS_HOST
REDIS_DB

Usage:

import time
import cachetools, cachetools.rcache


# cache = cachetools.rcache.RedisCache(ttl=60)

cache = cachetools.rcache.PrefixedRedisCache("hb-cachetools-cache", ttl=60)


@cachetools.cached(cache=cache)
def test(a, b):
    return {
        'hi': 'hello'
    }



a = 1
while True:
    print(test(a, 2))
    print(a)
    time.sleep(1)
    a = a+1

Metadata

Release files for py-redis-cachetools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-redis-cachetools 0.1.2
File Size Uploaded Provenance Actions
py-redis-cachetools-0.1.2.tar.gz 8.7 kB Without provenance Details for py-redis-cachetools-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-redis-cachetools 0.1.2
File Interpreter ABI Platform Actions
py_redis_cachetools-0.1.2-py3-none-any.whl Python 3 none any Details for py_redis_cachetools-0.1.2-py3-none-any.whl

Total release size: 18.1 kB

Release files / py-redis-cachetools-0.1.2.tar.gz

Download URL py-redis-cachetools-0.1.2.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
309dc6042b6e5174eae1c638a35cd940a96d856e9a703437ca00eb79967214b7
BLAKE2b-256 checksum
How to use checksums
dd98f61ff17ff2f2a52ea6660575f9c3f8b4dae11b827fa46e8c1cec217ca6a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-56-generic

Release files / py_redis_cachetools-0.1.2-py3-none-any.whl

Download URL py_redis_cachetools-0.1.2-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a946d80f0428367afda2ad28ce4c9f9f5fd0c6348e4e44b0d6747b0072f8c12
BLAKE2b-256 checksum
How to use checksums
42606aa87753b12099a494901600e66dfc666766118e3deb3a802edfa9c3c6bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-56-generic

Security for py-redis-cachetools 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page