public save ( string $id, mixed $data, integer $lifeTime ) : boolean | ||
$id | string | The cache id. |
$data | mixed | The cache entry/data. |
$lifeTime | integer | The cache lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime). |
return | boolean | TRUE if the entry was successfully stored in the cache, FALSE otherwise. |
public function save($id, $data, $lifeTime = 0)
{
$this->cache->set($this->convertCacheIdentifier($id), $data, [], $lifeTime);
}