Class CI_Cache_dummy - echiong/testRepo GitHub Wiki

##Class CI_Cache_dummy

CodeIgniter Dummy 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_dummy.php

##Methods summary


public Boolean get ( string $id )

Get

Since this is the dummy class, it's always going to return FALSE.

Parameters

$id string

Returns Boolean
FALSE


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, Simulating success


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
TRUE, simulating success


public boolean cache_info ( string $type = NULL )

Cache Info

Parameters

$type string
user/filehits

Returns boolean
FALSE


public boolean get_metadata ( mixed $id )

Get Cache Metadata

Parameters

$id mixed
key to get cache metadata on

Returns boolean
FALSE


public TRUE; is_supported ( )

Is this caching driver supported on the system? Of course this one is.

Returns TRUE;

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>
⚠️ **GitHub.com Fallback** ⚠️