CacheWincache::__construct |
( |
| ) |
|
CacheWincache::_delete |
( |
|
$_key | ) |
|
Delete variable from the cache(private)
- Parameters
-
string | $_key | Used to store the value. |
- Returns
- void
Definition at line 128 of file CacheWincache.class.php.
CacheWincache::delete |
( |
|
$key | ) |
|
Delete variable from the cache
- Parameters
-
string | $key | Used to store the value. |
- Returns
- void
Definition at line 139 of file CacheWincache.class.php.
CacheWincache::get |
( |
|
$key, |
|
|
|
$modified_time = 0 |
|
) |
| |
Gets a variable stored in the user cache
- Parameters
-
string | $key | The $key that was used to store the variable in the cache. |
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 104 of file CacheWincache.class.php.
CacheWincache::getInstance |
( |
|
$opt = null | ) |
|
CacheWincache::isSupport |
( |
| ) |
|
Return whether support or not support cache
- Returns
- bool Return true on support or false on not support
Definition at line 44 of file CacheWincache.class.php.
CacheWincache::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 77 of file CacheWincache.class.php.
CacheWincache::put |
( |
|
$key, |
|
|
|
$buff, |
|
|
|
$valid_time = 0 |
|
) |
| |
Adds a variable in user cache and overwrites a variable if it already exists in the cache
- Parameters
-
string | $key | Store the variable using this $key value. If a variable with same $key is already present the function will overwrite the previous value with the new one. |
mixed | $buff | 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 CacheWincache::valid_time. |
- Returns
- bool Returns true on success or false on failure.
Definition at line 60 of file CacheWincache.class.php.
CacheWincache::truncate |
( |
| ) |
|
Truncate all existing variables at the cache
- Returns
- bool Returns true on success or false on failure.
Definition at line 150 of file CacheWincache.class.php.
CacheWincache::$isSupport = false |
|
static |
The documentation for this class was generated from the following file: