public function set($section, $key, $value, $type = null): bool
    {
        if ($this->model->setSetting($section, $key, $value, $type)) {
            if ($this->invalidateCache()) {
                return true;
            }
        }

        return false;
    }
public function set($section, $key, $value, $type = null): bool
    {
        if ($this->model->setSetting($section, $key, $value, $type)) {
            if ($this->invalidateCache()) {
                return true;
            }
        }

        return false;
    }
public function set ( $ section , $ key , $ value , $ type = null ) : bool { if ( $ this -> model -> setSetting ( $ section , $ key , $ value , $ type ) ) { if ( $ this -> invalidateCache ( ) ) { return true ; } } return false ; }
Add a new setting or update an existing one.

@param null $section
@param string $key
@param string $value
@param null $type

@return bool
Add a new setting or update an existing one .