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 lru_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 lru_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.1.8.tar.gz
(2.2 kB
view details)
File details
Details for the file lru_cache-0.1.8.tar.gz.
File metadata
- Download URL: lru_cache-0.1.8.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def96f450e2211aff0c64dabb2c23581c8109b3864d972241553231366bc6419
|
|
| MD5 |
6b80a330a013659b94c862ddaf976fb3
|
|
| BLAKE2b-256 |
98f82e1844673d52d2ec3b2c4740377f5a52ad49b2e7778ea0b5a91d8485bd3b
|