info > Cache::Object

Cache::Object(3pm) User Contributed Perl Documentation Cache::Object(3pm)

📛 NAME

Cache::Object — the data stored in a Cache.

🚀 Quick Reference

Use CaseCommandDescription
Create a new object my $object = new Cache::Object(); Construct a new Cache::Object instance.
Set the cache key $object->set_key( $key ); Assign the key under which the object will be stored.
Store data $object->set_data( $data ); Set the scalar or reference to the data to be cached.
Set expiration time $object->set_expires_at( $expires_at ); Define when the object should expire from the cache.
Set creation time $object->set_created_at( $created_at ); Record the time the object was created.
Retrieve stored data $object->get_data(); Get the scalar or reference to the cached data.

📖 DESCRIPTION

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.

📋 SYNOPSIS

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 );

⚙️ METHODS

new( )

Construct a new Cache::Object.

📦 PROPERTIES

🔗 SEE ALSO

Cache::Cache

✍️ AUTHOR

Original author: DeWitt Clinton <dewitt AT unto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton

perl v5.20.2 2015-01-22 Cache::Object(3pm)

Cache::Object
📛 NAME 🚀 Quick Reference 📖 DESCRIPTION 📋 SYNOPSIS ⚙️ METHODS
new( )
📦 PROPERTIES 🔗 SEE ALSO ✍️ AUTHOR

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:22 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!