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
simple_ttl_cache-0.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for simple_ttl_cache-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6745107c78d0d6b751af5a41ba74d4a9f416514244553f13c447022018088f6 |
|
MD5 | 5f3c7737b42c6153a3aec2014c58aeb8 |
|
BLAKE2b-256 | a6d43418025a6c9d186a7973180eec77907745e86edd4c15838cdc5a7305b453 |