LRU cache?

Paul Rubin http
Sat Aug 11 08:05:40 EDT 2007


Anyone got a favorite LRU cache implementation?  I see a few in google
but none look all that good.  I just want a dictionary indexed by
strings, that remembers the last few thousand entries I put in it.

It actually looks like this is almost a FAQ.  A well-written
implementation would probably make a good standard library module.



More information about the Python-list mailing list