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
# 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)
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.3.tar.gz
(2.2 kB
view details)
File details
Details for the file lru_cache-0.2.3.tar.gz
.
File metadata
- Download URL: lru_cache-0.2.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21cb5738eb8da421e48c373bb350bfbf6856647c05f5548a8be72cdd999ee6d4 |
|
MD5 | 405960cfb8a74280642b9165ac87f001 |
|
BLAKE2b-256 | 1f65fb195865ef4c3c8f98b00531a4564c942e8f995fbc61ec7767881007ad8b |