public function setCachePath(string $path)
    {
        $rpath = substr($path, 0, 6) === "vfs://" ? $path : realpath($path);
        if (empty($rpath) || !file_exists($path))
            throw new InvalidArgumentException("Path does not exist: " . $rpath);
        $this->cache_path = $rpath;
    }
public function setCachePath(string $path)
    {
        $rpath = substr($path, 0, 6) === "vfs://" ? $path : realpath($path);
        if (empty($rpath) || !file_exists($path))
            throw new InvalidArgumentException("Path does not exist: " . $rpath);
        $this->cache_path = $rpath;
    }
public function setCachePath ( string $ path ) { $ rpath = substr ( $ path , 0 , 6 ) === "vfs://" ? $ path : realpath ( $ path ) ; if ( empty ( $ rpath ) || ! file_exists ( $ path ) ) throw new InvalidArgumentException ( "Path does not exist: " . $ rpath ) ; $ this -> cache_path = $ rpath ; }
Set the base directory for the cache files
@param string $path The cache directory
Set the base directory for the cache files