cache_info |
( |
|
$type = NULL ) | |
|
Cache Info
Not supported by file-based caching
- Parameters
-
- Returns
- mixed FALSE
Clean the Cache
- Returns
- boolean false on failure/true on success
Delete from Cache
- Parameters
-
mixed | unique identifier of item in cache |
- Returns
- boolean true on success/false on failure
Fetch from cache
- Parameters
-
- Returns
- mixed data on success/false on failure
Get Cache Metadata
- Parameters
-
mixed | key to get cache metadata on |
- Returns
- mixed FALSE on failure, array on success.
Is supported
In the file driver, check to see that the cache directory is indeed writable
- Returns
- boolean
save |
( |
|
$id, |
|
|
|
$data, |
|
|
|
$ttl = 60 |
|
) |
| |
Save into cache
- Parameters
-
string | unique key |
mixed | data to store |
int | length of time (in seconds) the cache is valid
|
- Returns
- boolean true on success/false on failure
The documentation for this class was generated from the following file:
- system/libraries/Cache/drivers/Cache_file.php