1Cache::Object(3) User Contributed Perl Documentation Cache::Object(3)
2
3
4
6 Cache::Object -- the data stored in a Cache.
7
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
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
25 new( )
26 Construct a new Cache::Object.
27
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 guarentee 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
52 Cache::Cache
53
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.12.0 2009-03-01 Cache::Object(3)