1Cache::Object(3)      User Contributed Perl Documentation     Cache::Object(3)
2
3
4

NAME

6       Cache::Object -- the data stored in a Cache.
7

DESCRIPTION

9       Object is used by classes implementing the Cache interface as an object
10       oriented wrapper around the data.  End users will not normally use
11       Object directly, but it can be retrieved via the get_object method on
12       the Cache::Cache interface.
13

SYNOPSIS

15        use Cache::Object;
16
17        my $object = new Cache::Object( );
18
19        $object->set_key( $key );
20        $object->set_data( $data );
21        $object->set_expires_at( $expires_at );
22        $object->set_created_at( $created_at );
23

METHODS

25       new(  )
26           Construct a new Cache::Object.
27

PROPERTIES

29       (get|set)_accessed_at
30           The time at which the object was last accessed.  Various cache
31           implementations will use the accessed_at property to store
32           information for LRU algorithms.  There is no guarantee that all
33           caches will update this field, however.
34
35       (get|set)_created_at
36           The time at which the object was created.
37
38       (get|set)_data
39           A scalar containing or a reference pointing to the data to be
40           stored.
41
42       (get|set)_expires_at
43           The time at which the object should expire from the cache.
44
45       (get|set)_key
46           The key under which the object was stored.
47
48       (get|set)_size
49           The size of the frozen version of this object
50

SEE ALSO

52       Cache::Cache
53

AUTHOR

55       Original author: DeWitt Clinton <dewitt@unto.net>
56
57       Last author:     $Author: dclinton $
58
59       Copyright (C) 2001-2003 DeWitt Clinton
60
61
62
63perl v5.28.0                      2015-01-22                  Cache::Object(3)
Impressum