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
foo.invalidate(num)

Project details


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page