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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 156
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-6895-1322672300-994.69837-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 469
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.