Skip to main content

thread safe lru cache

Project description

lru cahe
=====================

基于 **double link list** 和 **dict** (正好是**OrderedDict**)实现的一个线程安全的 lru cache decorator。

#### 使用方法
@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.1.3.tar.gz (2.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for lru_cache-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f33fa0019ce834e4f0b93fdaa72b11fab3ccbb50a7a94acb9d035ab372865c26
MD5 af4e3ae4bcf2ff08eb77fcc68dcfbbac
BLAKE2b-256 64c4e6996598acd015d76be1931b7d07b9929497e4492e9d21330243f7f46c8f

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