Simple lru cache?
Guido Goldstein
clpy at a-nugget.de
Sat Oct 5 06:41:34 EDT 2002
Hi!
On Fri, 04 Oct 2002 22:52:06 +0200
Ype Kingma <ykingma at accessforall.nl> wrote:
> Hello,
>
> Does anyone know of a good lru cache implementation in python?
> I tried google, and found some things in zope, but these are
> more complicated than what I need.
You might have a look at
http://www.a-nugget.org/downloads/LRUCache.py
It's a time based lru-cache with manual or automatic shrink.
I think it's commented enough to get a rough understanding of how it
works.
Of course, comments and suggestions are welcome.
HIH
Guido
More information about the Python-list
mailing list