Class CI_Cache_apc - echiong/testRepo GitHub Wiki
##Class CI_Cache_apc
CodeIgniter APC Caching Class
Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category:
Core
Author:
ExpressionEngine Dev Team
Link
Located at system/libraries/Cache/drivers/Cache_apc.php
##Methods summary
public mixed get ( string $id )
Get
Look for a value in the cache. If it exists, return the data if not, return FALSE
Parameters
$id
string
Returns
mixed
value that is stored/FALSE on failure
public boolean save ( string $id, mixed $data, integer $ttl = 60 )
Cache Save
Parameters
$id
string
Unique Key
$data
mixed
Data to store
$ttl
integer
Length of time (in seconds) to cache the data
Returns
boolean
true on success/false on failure
public delete ( mixed $id )
Delete from Cache
Parameters
$id
mixed
unique identifier of the item in the cache
public boolean clean ( )
Clean the cache
Returns
boolean
false on failure/true on success
public mixed cache_info ( string $type = NULL )
Cache Info
Parameters
$type
string
user/filehits
Returns
mixed
array on success, false on failure
public mixed get_metadata ( mixed $id )
Get Cache Metadata
Parameters
$id
mixed
key to get cache metadata on
Returns
mixed
array on success/false on failure
public is_supported ( )
is_supported()
Check to see if APC is available on this system, bail if it isn't.
Methods inherited from CI_Driver
__call()
__get()
__set()
decorate()
<table class="summary inherited">
<caption>Properties inherited from <a href="Class CI_Driver.md#properties">CI_Driver</a></caption>
<tr>
<td><code>
<a href="Class CI_Driver.md#$parent"><var>$parent</var></a>
</code></td>
</tr>
</table>