Cache::Object -- the data stored in a Cache.
Object is used by classes implementing the Cache interface as an object oriented wrapper around the data. End users will not normally use Object directly, but it can be retrieved via the get_object method on the Cache::Cache interface.
use Cache::Object; my $object = new Cache::Object( ); $object->set_key( $key ); $object->set_data( $data ); $object->set_expires_at( $expires_at ); $object->set_created_at( $created_at );
Construct a new Cache::Object.
The time at which the object was last accessed. Various cache implementations will use the accessed_at property to store information for LRU algorithms. There is no guarentee that all caches will update this field, however.
The time at which the object was created.
A scalar containing or a reference pointing to the data to be stored.
The time at which the object should expire from the cache.
The key under which the object was stored.
The size of the frozen version of this object
Cache::Cache
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001-2003 DeWitt Clinton
To install Cache::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Cache
CPAN shell
perl -MCPAN -e shell install Cache::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.