1 | <?php |
||
20 | class Cache_Lite_Timed extends Cache_Lite |
||
21 | { |
||
22 | var $_bufferedLifetime; |
||
23 | |||
24 | // --- Public methods ---- |
||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * $options is an assoc. To have a look at availables options, |
||
30 | * see the constructor of the Cache_Lite class in 'Cache_Lite.php' |
||
31 | * |
||
32 | * @param array $options options |
||
33 | * @access public |
||
34 | */ |
||
35 | function __construct($options = array(NULL)) |
||
39 | |||
40 | /** |
||
41 | * Save some data in a cache file |
||
42 | * |
||
43 | * @param string $data data to put in cache (can be another type than strings if automaticSerialization is on) |
||
44 | * @param string $id cache id |
||
45 | * @param string $group name of the cache group |
||
46 | * @param int $lifetime The time in seconds that this entry should live. Defaults to the lifetime |
||
47 | * set by the constructor. |
||
48 | * @return boolean true if no problem (else : false or a PEAR_Error object) |
||
49 | * @access public |
||
50 | */ |
||
51 | function save($data, $id = NULL, $group = 'default', $lifetime = null) |
||
71 | |||
72 | /** |
||
73 | * Sets the ctime/mtime status for a file for the given time. |
||
74 | * |
||
75 | * @param integer $time Unix timestamp |
||
76 | * @return boolean |
||
77 | */ |
||
78 | function _setLastModified($time) { |
||
84 | |||
85 | /** |
||
86 | * Override refresh time function. Returns current time. |
||
87 | * |
||
88 | */ |
||
89 | function _setRefreshTime() { |
||
96 | |||
97 | } |
||
98 |