|
| $valid_drivers |
|
| $_cache_path = NULL |
|
| $_adapter = 'dummy' |
|
| $_backup_driver |
|
| $valid_drivers = array() |
|
| $lib_name |
|
__construct |
( |
|
$config = array() ) | |
|
cache_info |
( |
|
$type = 'user' ) | |
|
Cache Info
- Parameters
-
- Returns
- mixed array on success, false on failure
Clean the cache
- Returns
- boolean false on failure/true on success
Delete from Cache
- Parameters
-
mixed | unique identifier of the item in the cache |
- Returns
- boolean true on success/false on failure
Get
Look for a value in the cache. If it exists, return the data if not, return FALSE
- Parameters
-
- Returns
- mixed value that is stored/FALSE on failure
Get Cache Metadata
- Parameters
-
mixed | key to get cache metadata on |
- Returns
- mixed return value from child method
Is the requested driver supported in this environment?
- Parameters
-
string | The driver to test. |
- Returns
- array
save |
( |
|
$id, |
|
|
|
$data, |
|
|
|
$ttl = 60 |
|
) |
| |
Cache Save
- Parameters
-
string | Unique Key |
mixed | Data to store |
int | Length of time (in seconds) to cache the data |
- Returns
- boolean true on success/false on failure
Initial value:= array(
'cache_apc', 'cache_file', 'cache_memcached', 'cache_dummy'
)
The documentation for this class was generated from the following file:
- system/libraries/Cache/Cache.php