Skip to main content

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lru_cache, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size lru_cache-0.2.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page