setItem() public method

save the content into an php file
public setItem ( string $cacheId, mixed $content, boolean $withVersion = true ) : boolean
$cacheId string The cache id
$content mixed The content to store
$withVersion boolean
return boolean whether the file was correctly written to the disk
Ejemplo n.º 1
0
 /**
  * stores the version of the ini file into cache
  *
  * @return \BrowscapPHP\Helper\Converter
  */
 public function storeVersion()
 {
     $this->cache->setItem('browscap.version', $this->iniVersion, false);
     return $this;
 }