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

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.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file lru_cache-0.2.1.tar.gz.

File metadata

  • Download URL: lru_cache-0.2.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lru_cache-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bfd8f8a1aef076b3d945282081014b8d1022d7e2345fbb55ae6f296dc188cc30
MD5 30b3a1b9667f58fa91e8edc8b6186d97
BLAKE2b-256 76916a854c7c30c21b91b9380dc4603280e51ad3bf7d7c36797138b39fde4001

See more details on using hashes here.

Supported by

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