Skip to content

andruskutt/simple-ttl-cache

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages