![]() |
![]()
| ![]() |
![]()
NAMECHI::CacheObject - Contains information about cache entries VERSIONversion 0.60 SYNOPSISmy $object = $cache->get_object($key); my $key = $object->key(); my $value = $object->value(); my $expires_at = $object->expires_at(); my $created_at = $object->created_at(); if ($object->is_expired()) { ... } DESCRIPTIONThe CHI method returns this object if the key exists. The object will be returned even if the entry has expired, as long as it has not been removed. There is currently no public API for creating one of these objects directly. METHODSAll methods are read-only. The get_* methods are provided for backward compatibility with Cache::Cache's Cache::Object.
SEE ALSOCHI AUTHORJonathan Swartz <swartz@pobox.com> COPYRIGHT AND LICENSEThis software is copyright (c) 2012 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|