Doctrine\Common\Cache\Cache::save
Puts data into the cache.
Signature
public function save(string
$id,
[mixed
$data = 0,
[integer
$lifeTime = 0]] )
Parameters
$id
— string- The cache id.
$data
— mixed- The cache entry/data.
$lifeTime
— integer- The lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime).
Returns
- boolean
- TRUE if the entry was successfully stored in the cache, FALSE otherwise.