semvec/pypi-packages huggingface dataset:
simple-ttl-cache 0.0.1
TTL cache
License: MIT
Requires Python: >=3.7
Keywords: caching

# Simple TTL cache for multithreaded application

## Usage

Usual get, put and evict methods.

Using decorator:

```python
from simple_ttl_cache import ttl_cache


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

## Installation

```shell
$ pip install simple_ttl_cache
```