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
# invalidate cache
foo.invalidate(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
# invalidate cache
foo.invalidate(num)
Release files for lru_cache 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lru_cache-0.2.3.tar.gz | 2.2 kB | Details |
Release files / lru_cache-0.2.3.tar.gz
| Download URL | lru_cache-0.2.3.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21cb5738eb8da421e48c373bb350bfbf6856647c05f5548a8be72cdd999ee6d4
|
|
BLAKE2b-256 checksum How to use checksums |
1f65fb195865ef4c3c8f98b00531a4564c942e8f995fbc61ec7767881007ad8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |