SkillAgentSearch skills...

LruCache.py

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

Install / Use

/learn @cleverdeng/LruCache.py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars16
CategoryCustomer
Updated3y ago
Forks6

Languages

Python

Security Score

60/100

Audited on May 24, 2022

No findings