LRU cache?
Nikita the Spider
NikitaTheSpider at gmail.com
Sun Aug 12 12:21:25 EDT 2007
In article <7x8x8ixomj.fsf_-_ at ruckus.brouhaha.com>,
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
> 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.
This one works for me:
http://www.webfast.com/~skip/python/Cache.py
--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
More information about the Python-list
mailing list