cache_info |
( |
|
$type = NULL ) | |
|
Cache Info
- Parameters
-
null | type not supported in memcached |
- Returns
- mixed array on success, false on failure
Clean the Cache
- Returns
- boolean false on failure/true on success
Delete from Cache
- Parameters
-
- 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
Returns FALSE if memcached is not supported on the system. If it is, we setup the memcached object & return TRUE
save |
( |
|
$id, |
|
|
|
$data, |
|
|
|
$ttl = 60 |
|
) |
| |
Save
- Parameters
-
string | unique identifier |
mixed | data being cached |
int | time to live |
- Returns
- boolean true on success, false on failure
Initial value:= array(
'default' => array(
'default_host' => '127.0.0.1',
'default_port' => 11211,
'default_weight' => 1
)
)
The documentation for this class was generated from the following file:
- system/libraries/Cache/drivers/Cache_memcached.php