simple-ttl-cache

TTL cache


Keywords
caching
License
MIT
Install
pip install simple-ttl-cache==0.0.1

Documentation

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