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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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