public function create($fileName, $data)
    {
        $path = $this->getPathBase($fileName);

        if (file_exists($path)) {
            return;
        }

        $data = serialize($data);

        return file_put_contents($path, $data);
    }
public function create($fileName, $data)
    {
        $path = $this->getPathBase($fileName);

        if (file_exists($path)) {
            return;
        }

        $data = serialize($data);

        return file_put_contents($path, $data);
    }
public function create ( $ fileName , $ data ) { $ path = $ this -> getPathBase ( $ fileName ) ; if ( file_exists ( $ path ) ) { return ; } $ data = serialize ( $ data ) ; return file_put_contents ( $ path , $ data ) ; }
serialises and creates cache file if required
if the file already exists, skip this
@param  string $key  example-file-name
@param  array $data
@return bool
serialises and creates cache file if required if the file already exists skip this