Doctrine\Common\Cache\CacheProvider::doSave PHP Метод

doSave() абстрактный защищенный Метод

Puts data into the cache.
abstract protected doSave ( string $id, string $data, integer $lifeTime ) : boolean
$id string The cache id.
$data string The cache entry/data.
$lifeTime integer The lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime).
Результат boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.
    protected abstract function doSave($id, $data, $lifeTime = 0);

Usage Example

 /**
  * @inheritdoc
  */
 protected function doSave($id, $data, $lifeTime = 0)
 {
     return $this->cacheProvider->doSave($id, $data, $lifeTime);
 }