Top "Lru" questions

LRU is a family of caching algorithms, where LRU stands for least recently used.

Python functools lru_cache with class methods: release object

How can I use functools' lru_cache inside classes without leaking memory? In the following minimal example the foo instance …

python caching python-decorators lru functools
LRU cache implementation in Javascript

Java has LinkedHashMap which gets you 99% there to an LRU cache. Is there a Javascript implementation of an LRU cache, …

javascript algorithm caching lru
Will the LRU delete entries that have not been used for some amount of time?

When in memcache the available memory is full, memcache uses the LRU (last recently used) algorithm to free memory. My …

memcached lru
algorithm LRU, how many bits needed for implement this algorithm?

I have a little question about the algorithm LRU. If you have a cache with four blocs , how many bits …

algorithm cpu-cache lru
Usage for lru cache in functools

I want to use lru_cache in my code, however, I get this error: NameError: name 'lru_cache' is not …

python lru functools
Python LRU Cache Decorator Per Instance

Using the LRU Cache decorator found here: http://code.activestate.com/recipes/578078-py26-and-py30-backport-of-python-33s-lru-cache/ from lru_cache import …

python caching decorator lru
Get the last time a given Redis key was accessed

I'd like to view the time of most recent access for a specific key on my redis server. I know …

caching redis key lru
LRU Page Replacement algorithm C#

I am trying to write a function which simulates LRU page replacement. I understand LRU pretty well but am having …

c# algorithm operating-system lru page-replacement
Use functools' @lru_cache without specifying maxsize parameter

The documentation for lru_cache gives the function definition: @functools.lru_cache(maxsize=128, typed=False) This says to me that …

python caching lru functools
LRUCache in Scala?

I know Guava has an excellent caching library but I am looking for something more Scala/functional friendly where I …

scala caching java lru