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
=====================
基于 **double link list** 和 **dict** (正好是**OrderedDict**)实现的一个线程安全的 lru cache decorator。
#### 使用方法
@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.2.tar.gz
(2.0 kB
view hashes)