Skip Menu |

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 77431
Status: resolved
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.52
Fixed in: (no value)



Please add CHI::CacheObject->accessed_at() so that I can implement LRU policies.
Subject: Re: [rt.cpan.org #77431]
Date: Tue, 29 May 2012 17:52:35 -0700
To: bug-CHI [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
What kind of cache driver are you using? The Memory cache already has an lru discard policy. Memcached and FastMmap already have built-in LRU. For other drivers, implementing accessed_at would mean doing an extra write for every single read - usually this costs far more than it is worth. On May 25, 2012, at 10:24 AM, Nigel Horne via RT wrote: Show quoted text
> Fri May 25 13:24:28 2012: Request 77431 was acted upon. > Transaction: Ticket created by NHORNE > Queue: CHI > Subject: (No subject given) > Broken in: 0.52 > Severity: Wishlist > Owner: Nobody > Requestors: NHORNE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77431 > > > > Please add CHI::CacheObject->accessed_at() so that I can implement LRU > policies.
Mostly file.
Subject: Re: [rt.cpan.org #77431]
Date: Sun, 3 Jun 2012 22:36:23 -0700
To: bug-CHI [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Yeah, I don't see how to add this to the File driver in an efficient way - it would effectively turn every get() into a set(). If you wanted to do this I think you'd want to write your own routine that could check the access times of each cache file (assuming you are on Unix). On May 30, 2012, at 6:34 AM, Nigel Horne via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=77431 > > > Mostly file.