PHP Class CI_Cache_dummy, TastyIgniter

Author: EllisLab Dev Team
Inheritance: extends CI_Driver
Datei anzeigen Open project: tastyigniter/tastyigniter

Public Methods

Method Description
cache_info ( $type = NULL ) : boolean Cache Info
clean ( ) : boolean Clean the cache
decrement ( string $id, integer $offset = 1 ) : mixed Decrement a raw value
delete ( $id ) : boolean Delete from Cache
get ( $id ) : boolean Get
get_metadata ( $id ) : boolean Get Cache Metadata
increment ( string $id, integer $offset = 1 ) : mixed Increment a raw value
is_supported ( ) : boolean Is this caching driver supported on the system? Of course this one is.
save ( $id, $data, $ttl = 60, $raw = FALSE ) : boolean Cache Save

Method Details

cache_info() public method

Cache Info
public cache_info ( $type = NULL ) : boolean
return boolean FALSE

clean() public method

Clean the cache
public clean ( ) : boolean
return boolean TRUE, simulating success

decrement() public method

Decrement a raw value
public decrement ( string $id, integer $offset = 1 ) : mixed
$id string Cache ID
$offset integer Step/value to reduce by
return mixed New value on success or FALSE on failure

delete() public method

Delete from Cache
public delete ( $id ) : boolean
return boolean TRUE, simulating success

get() public method

Since this is the dummy class, it's always going to return FALSE.
public get ( $id ) : boolean
return boolean FALSE

get_metadata() public method

Get Cache Metadata
public get_metadata ( $id ) : boolean
return boolean FALSE

increment() public method

Increment a raw value
public increment ( string $id, integer $offset = 1 ) : mixed
$id string Cache ID
$offset integer Step/value to add
return mixed New value on success or FALSE on failure

is_supported() public method

Is this caching driver supported on the system? Of course this one is.
public is_supported ( ) : boolean
return boolean TRUE

save() public method

Cache Save
public save ( $id, $data, $ttl = 60, $raw = FALSE ) : boolean
return boolean TRUE, Simulating success