src/Cache/FileCache.php
private function write()
    {
        $cache = serialize($this->records);
        flock($this->file, LOCK_EX);
        rewind($this->file);
        ftruncate($this->file, 0);
        $bytes = fwrite($this->file, $cache);
        flock($this->file, LOCK_UN);

        return $bytes === strlen($cache);
    }
private function write()
    {
        $cache = serialize($this->records);
        flock($this->file, LOCK_EX);
        rewind($this->file);
        ftruncate($this->file, 0);
        $bytes = fwrite($this->file, $cache);
        flock($this->file, LOCK_UN);

        return $bytes === strlen($cache);
    }
private function write ( ) { $ cache = serialize ( $ this -> records ) ; flock ( $ this -> file , LOCK_EX ) ; rewind ( $ this -> file ) ; ftruncate ( $ this -> file , 0 ) ; $ bytes = fwrite ( $ this -> file , $ cache ) ; flock ( $ this -> file , LOCK_UN ) ; return $ bytes === strlen ( $ cache ) ; }
Write cache to disk.

@return bool
Write cache to disk .