LruCache.py
Implements LRU(Last-recently-used) cache algorithm, Support the thread safe, With Python
Install / Use
/learn @cleverdeng/LruCache.pyREADME
LruCache.py
Implements LRU(Last-recently-used) cache algorithm, Support the thread safe, With Python
Example:
import lru as cache
lru = cache.LruCache(item_max=5)
@lru.fn_cache
def test_fn(x,y):
return x,y
