Skip to content

Implements LRU(Last-recently-used) cache algorithm, Support the thread safe, With Python

Notifications You must be signed in to change notification settings

cleverdeng/LruCache.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implements LRU(Last-recently-used) cache algorithm, Support the thread safe, With Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages