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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_ttl_cache-0.0.1.tar.gz.
File metadata
- Download URL: simple_ttl_cache-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fc65393ff19c061d16b620d49cb5d81b8b91e09651eb1901607415bba8d6453
|
|
| MD5 |
6dd62901293de6e2736e5908ad76fb69
|
|
| BLAKE2b-256 |
3479eb2f1255efed3580e9d077ef13d9fefb06c8f0a1ef0c2800be8bf1cc2d00
|
File details
Details for the file simple_ttl_cache-0.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_ttl_cache-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6745107c78d0d6b751af5a41ba74d4a9f416514244553f13c447022018088f6
|
|
| MD5 |
5f3c7737b42c6153a3aec2014c58aeb8
|
|
| BLAKE2b-256 |
a6d43418025a6c9d186a7973180eec77907745e86edd4c15838cdc5a7305b453
|