Skip to main content

Simple TTL cache for multithreaded application

Usage

Usual get, put and evict methods.

Using decorator:

from simple_ttl_cache import ttl_cache


@ttl_cache
def expensive_calculation(id: int) -> str
    return str(id)

Installation

$ pip install simple_ttl_cache

Metadata

Release files for simple-ttl-cache 0.0.1

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

Source distribution (sdist)

Source distribution for simple-ttl-cache 0.0.1
File Size Uploaded Provenance Actions
simple_ttl_cache-0.0.1.tar.gz 3.8 kB Without provenance Details for simple_ttl_cache-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-ttl-cache 0.0.1
File Interpreter ABI Platform Actions
simple_ttl_cache-0.0.1-py3-none-any.whl Python 3 none any Details for simple_ttl_cache-0.0.1-py3-none-any.whl

Total release size: 7.8 kB

Release files / simple_ttl_cache-0.0.1.tar.gz

Download URL simple_ttl_cache-0.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1fc65393ff19c061d16b620d49cb5d81b8b91e09651eb1901607415bba8d6453
BLAKE2b-256 checksum
How to use checksums
3479eb2f1255efed3580e9d077ef13d9fefb06c8f0a1ef0c2800be8bf1cc2d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Release files / simple_ttl_cache-0.0.1-py3-none-any.whl

Download URL simple_ttl_cache-0.0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6745107c78d0d6b751af5a41ba74d4a9f416514244553f13c447022018088f6
BLAKE2b-256 checksum
How to use checksums
a6d43418025a6c9d186a7973180eec77907745e86edd4c15838cdc5a7305b453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Security for simple-ttl-cache 0.0.1

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