HTML::Mason::Cache::BaseCache - Base cache object
This is the base module for all cache implementations used in Mason.
It provides a few additional methods on top of Cache::BaseCache
in
Dewitt Clinton's Cache::Cache
package.
An object of this class is returned from $m->cache.
Cache::Object
object associated with key.
The most useful methods on this object are
$co->get_created_at(); # when was object stored in cache $co->get_accessed_at(); # when was object last accessed $co->get_expires_at(); # when does object expire
$expires_in may be a simple number of seconds, or a string of the form ``[number] [unit]'', e.g., ``10 minutes''. The valid units are s, second, seconds, sec, m, minute, minutes, min, h, hour, hours, d, day, days, w, week, weeks, M, month, months, y, year, and years.