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.