Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

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



Subject: Please add age option
Download (untitled) / with headers
text/plain 156b
In the "Inspecting keys" please add an age() method which, given a key as an argument, returns the number of seconds since the item was stored in the cache.
Download (untitled) / with headers
text/plain 469b
This can be achieved with: $cache->get_object($key)->created_at() - time; Prefer not to broaden the inspection API any further than it already is. But you're welcome to create a role that adds these and other convenience methods. Thanks Jon On Wed Jul 27 13:46:28 2011, njh@bandsman.co.uk wrote: Show quoted text
> In the "Inspecting keys" please add an age() method which, given a key > as an argument, returns the number of seconds since the item was stored > in the cache.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.