Property | Type | Description | |
---|---|---|---|
$_bufferedLifetime |
Method | Description | |
---|---|---|
__construct ( array $options = [NULL] ) | Constructor | |
_setLastModified ( integer $time ) : boolean | Sets the ctime/mtime status for a file for the given time. | |
_setRefreshTime ( ) | Override refresh time function. Returns current time. | |
save ( string $data, string $id = NULL, string $group = 'default', integer $lifetime = null ) : boolean | Save some data in a cache file |
public __construct ( array $options = [NULL] ) | ||
$options | array | options |
public _setLastModified ( integer $time ) : boolean | ||
$time | integer | Unix timestamp |
return | boolean |
public _setRefreshTime ( ) |
public save ( string $data, string $id = NULL, string $group = 'default', integer $lifetime = null ) : boolean | ||
$data | string | data to put in cache (can be another type than strings if automaticSerialization is on) |
$id | string | cache id |
$group | string | name of the cache group |
$lifetime | integer | The time in seconds that this entry should live. Defaults to the lifetime set by the constructor. |
return | boolean | true if no problem (else : false or a PEAR_Error object) |