Skip to main content

TTL cache

Project description

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

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

simple_ttl_cache-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

simple_ttl_cache-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_ttl_cache-0.0.1.tar.gz.

File metadata

  • Download URL: simple_ttl_cache-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for simple_ttl_cache-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1fc65393ff19c061d16b620d49cb5d81b8b91e09651eb1901607415bba8d6453
MD5 6dd62901293de6e2736e5908ad76fb69
BLAKE2b-256 3479eb2f1255efed3580e9d077ef13d9fefb06c8f0a1ef0c2800be8bf1cc2d00

See more details on using hashes here.

File details

Details for the file simple_ttl_cache-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_ttl_cache-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6745107c78d0d6b751af5a41ba74d4a9f416514244553f13c447022018088f6
MD5 5f3c7737b42c6153a3aec2014c58aeb8
BLAKE2b-256 a6d43418025a6c9d186a7973180eec77907745e86edd4c15838cdc5a7305b453

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