>> My Cache module does #1 and #3. I'm not sure if you want #2 for
>> internal cache maintenance or for as part of the API.
>>
>> http://www.smontanaro.net/python/Cache.py
pdpi> I'm not sure whether #2 is doable at all, as written. You _need_ a
pdpi> complete history
On Jul 12, 2:01 pm, s...@pobox.com wrote:
> Nikolaus> I want to implement a caching data structure in Python that
> Nikolaus> allows me to:
>
> Nikolaus> 1. Quickly look up objects using a key
> Nikolaus> 2. Keep track of the order in which the objects are accessed
> Nikolaus>
Nikolaus> I want to implement a caching data structure in Python that
Nikolaus> allows me to:
Nikolaus> 1. Quickly look up objects using a key
Nikolaus> 2. Keep track of the order in which the objects are accessed
Nikolaus> (most recently and least recently accessed one,
On Fri, 10 Jul 2009 09:22:29 -0400, Nikolaus Rath wrote:
> Hello,
>
> I want to implement a caching data structure in Python that allows me
> to:
>
> 1. Quickly look up objects using a key 2. Keep track of the order in
> which the objects are accessed (most
> recently and least recently ac