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.