CacheApc::__construct |
( |
| ) |
|
CacheApc::_delete |
( |
|
$key | ) |
|
Delete variable from the cache
- Parameters
-
string | $key | Used to store the value. |
- Returns
- void
Definition at line 126 of file CacheApc.class.php.
CacheApc::get |
( |
|
$key, |
|
|
|
$modified_time = 0 |
|
) |
| |
Fetch a stored variable from the cache
- Parameters
-
string | $key | The $key used to store the value. |
int | $modified_time | Unix time of data modified. If stored time is older then modified time, return false. |
- Returns
- false|mixed Return false on failure or older then modified time. Return the string associated with the $key on success.
Definition at line 102 of file CacheApc.class.php.
CacheApc::getInstance |
( |
|
$opt = null | ) |
|
Return whether support or not support cache
- Returns
- bool Return true on support or false on not support
Definition at line 42 of file CacheApc.class.php.
CacheApc::isValid |
( |
|
$key, |
|
|
|
$modified_time = 0 |
|
) |
| |
Return whether cache is valid or invalid
- Parameters
-
string | $key | Cache key |
int | $modified_time | Unix time of data modified. If stored time is older then modified time, the data is invalid. |
- Returns
- bool Return true on valid or false on invalid.
Definition at line 75 of file CacheApc.class.php.
CacheApc::put |
( |
|
$key, |
|
|
|
$buff, |
|
|
|
$valid_time = 0 |
|
) |
| |
Cache a variable in the data store
- Parameters
-
string | $key | Store the variable using this name. $key are cache-unique, so storing a second value with the same $key will overwrite the original value. |
mixed | $buff | The variable to store |
int | $valid_time | Time To Live; store $buff in the cache for ttl seconds. After the ttl has passed., the stored variable will be expunged from the cache (on the next request). If no ttl is supplied, use the default valid time CacheApc::valid_time. |
- Returns
- bool Returns true on success or false on failure.
Definition at line 57 of file CacheApc.class.php.
Truncate all existing variables at the cache
- Returns
- bool Returns true on success or false on failure.
Definition at line 137 of file CacheApc.class.php.
CacheApc::$isSupport = false |
|
static |
The documentation for this class was generated from the following file: