dictionary that discards old items

Michael Hoffman cam.ac.uk at mh391.invalid
Fri Jul 22 15:48:37 CEST 2005

Will McGugan wrote:

>> You want a Least Recently Used, or LRU, cache. Here's one:
> Thanks. I found the one I saw originally in the Python Cookbook. Only 
> they call it a FIFO cache.

A FIFO cache is different, as gene tani points out. You need to consider 
  which one it is you want.
Michael Hoffman

More information about the Python-list mailing list