public function setCachePath($path) {
		$path = rtrim($path, DIRECTORY_SEPARATOR);
		$path = realpath($path);
		
		if ($path === false) {
			throw new NoPath('Invalid path: "' . func_get_arg(0) . '"');
		}
		
		if (! is_dir($path)) {
			throw new NoPath('Path must be a directory: "' . $path . '"');
		}
		
		if (! is_writeable($path)) {
			throw new NoPath('Path must be a writable: "' . $path . '"');
		}
		
		$this->path = $path;
	}
public function setCachePath($path) {
		$path = rtrim($path, DIRECTORY_SEPARATOR);
		$path = realpath($path);
		
		if ($path === false) {
			throw new NoPath('Invalid path: "' . func_get_arg(0) . '"');
		}
		
		if (! is_dir($path)) {
			throw new NoPath('Path must be a directory: "' . $path . '"');
		}
		
		if (! is_writeable($path)) {
			throw new NoPath('Path must be a writable: "' . $path . '"');
		}
		
		$this->path = $path;
	}
public function setCachePath ( $ path ) { $ path = rtrim ( $ path , DIRECTORY_SEPARATOR ) ; $ path = realpath ( $ path ) ; if ( $ path === false ) { throw new NoPath ( 'Invalid path: "' . func_get_arg ( 0 ) . '"' ) ; } if ( ! is_dir ( $ path ) ) { throw new NoPath ( 'Path must be a directory: "' . $ path . '"' ) ; } if ( ! is_writeable ( $ path ) ) { throw new NoPath ( 'Path must be a writable: "' . $ path . '"' ) ; } $ this -> path = $ path ; }
Set the cache path

@param  string $path
@throws NoPath
Set the cache path