Cache.php
public function set($filename, $contents = '')
    {
        $cacheFile = $this->getCacheFile($filename, true, true);

        file_put_contents($cacheFile, $contents, \LOCK_EX);

        return $this;
    }
public function set($filename, $contents = '')
    {
        $cacheFile = $this->getCacheFile($filename, true, true);

        file_put_contents($cacheFile, $contents, \LOCK_EX);

        return $this;
    }
Write data in the cache

@param string $filename the name of the cache file
@param string $contents the contents to store
@return self