Class CI_Cache_file - echiong/testRepo GitHub Wiki
##Class CI_Cache_file
CodeIgniter Memcached 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_file.php
##Methods summary
public __construct ( )
Constructor
public mixed get ( mixed $id )
Fetch from cache
Parameters
$id
mixed
unique key id
Returns
mixed
data on success/false on failure
public boolean save ( string $id, mixed $data, integer $ttl = 60 )
Save into cache
Parameters
$id
string
unique key
$data
mixed
data to store
$ttl
integer
length of time (in seconds) the cache is valid - Default is 60 seconds
Returns
boolean
true on success/false on failure
public boolean delete ( mixed $id )
Delete from Cache
Parameters
$id
mixed
unique identifier of item in cache
Returns
boolean
true on success/false on failure
public boolean clean ( )
Clean the Cache
Returns
boolean
false on failure/true on success
public mixed cache_info ( string $type = NULL )
Cache Info
Not supported by file-based caching
Parameters
$type
string
user/filehits
Returns
mixed
FALSE
public mixed get_metadata ( mixed $id )
Get Cache Metadata
Parameters
$id
mixed
key to get cache metadata on
Returns
mixed
FALSE on failure, array on success.
public boolean is_supported ( )
Is supported
In the file driver, check to see that the cache directory is indeed writable
Returns
boolean
Methods inherited from CI_Driver
__call()
__get()
__set()
decorate()
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="_cache_path" id="$_cache_path">
<td class="attributes"><code>
protected
mixed
</code></td>
<td class="name">
$_cache_path
<div class="description detailed">
</div>
</div></td>
</tr>
</table>
<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>