public function set_state($state) {
        if ($state <= $this->state) {
            return false;
        }
        $this->state = $state;
        return true;
    }
public function set_state($state) {
        if ($state <= $this->state) {
            return false;
        }
        $this->state = $state;
        return true;
    }
public function set_state ( $ state ) { if ( $ state <= $ this -> state ) { return false ; } $ this -> state = $ state ; return true ; }
Updates the state fo the cache API.

@param int $state
@return bool
Updates the state fo the cache API .