public function setCachePath($path = null)
    {
        if (is_null($path)) {
            $this->path = __DIR__;
        } else {
            $this->path = filter_var($path, FILTER_SANITIZE_STRING);
        }
    }
public function setCachePath($path = null)
    {
        if (is_null($path)) {
            $this->path = __DIR__;
        } else {
            $this->path = filter_var($path, FILTER_SANITIZE_STRING);
        }
    }
public function setCachePath ( $ path = null ) { if ( is_null ( $ path ) ) { $ this -> path = __DIR__ ; } else { $ this -> path = filter_var ( $ path , FILTER_SANITIZE_STRING ) ; } }
Set cache path

@param  string $path
@return void
Set cache path