Metadata-Version: 2.1
Name: simple-ttl-cache
Version: 0.0.1
Summary: TTL cache
Home-page: https://github.com/andruskutt/simple-ttl-cache
Author: Andrus Kütt
Author-email: andrus.kuett@gmail.com
License: MIT
Keywords: caching
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
```
