thread safe lru cache
Project description
lru cahe
=====================
Thread-safe lru cache decorator based on **double link list** and **dict** (**OrderedDict**)
### how to install
pip install lru_cache
#### how to use
from cache import LruCache
@LruCache(maxsize=2, timeout=1)
def foo(num):
return num
=====================
Thread-safe lru cache decorator based on **double link list** and **dict** (**OrderedDict**)
### how to install
pip install lru_cache
#### how to use
from cache import LruCache
@LruCache(maxsize=2, timeout=1)
def foo(num):
return num
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
lru_cache-0.2.1.tar.gz
(2.2 kB
view details)
File details
Details for the file lru_cache-0.2.1.tar.gz.
File metadata
- Download URL: lru_cache-0.2.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd8f8a1aef076b3d945282081014b8d1022d7e2345fbb55ae6f296dc188cc30
|
|
| MD5 |
30b3a1b9667f58fa91e8edc8b6186d97
|
|
| BLAKE2b-256 |
76916a854c7c30c21b91b9380dc4603280e51ad3bf7d7c36797138b39fde4001
|