Public Member Functions | |
get ($key, $modified_time=0) | |
put ($key, $obj, $valid_time=0) | |
isValid ($key, $modified_time=0) | |
isSupport () | |
truncate () | |
Public Attributes | |
$valid_time = 36000 | |
Base class of Cache
Definition at line 286 of file CacheHandler.class.php.
CacheBase::get | ( | $key, | |
$modified_time = 0 |
|||
) |
Get cached data
string | $key | Cache key |
int | $modified_time | Unix time of data modified. If stored time is older then modified time, return false. |
Definition at line 302 of file CacheHandler.class.php.
CacheBase::isSupport | ( | ) |
Return whether support or not support cache
Definition at line 340 of file CacheHandler.class.php.
CacheBase::isValid | ( | $key, | |
$modified_time = 0 |
|||
) |
Return whether cache is valid or invalid
string | $key | Cache key |
int | $modified_time | Unix time of data modified. If stored time is older then modified time, the data is invalid. |
Definition at line 330 of file CacheHandler.class.php.
CacheBase::put | ( | $key, | |
$obj, | |||
$valid_time = 0 |
|||
) |
Put data into cache
string | $key | Cache key |
mixed | $obj | Value of a variable to store. $value supports all data types except resources, such as file handlers. |
int | $valid_time | Time for the variable to live in the cache in seconds. After the value specified in ttl has passed the stored variable will be deleted from the cache. If no ttl is supplied, use the default valid time. |
Definition at line 317 of file CacheHandler.class.php.
CacheBase::truncate | ( | ) |
Truncate all cache
Definition at line 350 of file CacheHandler.class.php.
CacheBase::$valid_time = 36000 |
Definition at line 292 of file CacheHandler.class.php.