set()

Store arbitrary data in the cache

set($id, $data, $tags = NULL, $lifetime = NULL)

Parameters
Returns

Usage

This is one example

$this->cache->set('existentialists', $data, $tags);

Here's another example

$data = array('Jean Paul Sartre', 'Albert Camus', 'Simone de Beauvoir');
$tags = array('existentialism', 'philosophy', 'french');
 
$this->cache->set('existentialists', $data, $tags);