public function setItem($name, $value = null, $where = '')
    {
        if ($name === null || $where === '') {
            $this->putItem($name, $value);
        } else {
            $this->setItems([$name => $value], $where);
        }
    }
public function setItem($name, $value = null, $where = '')
    {
        if ($name === null || $where === '') {
            $this->putItem($name, $value);
        } else {
            $this->setItems([$name => $value], $where);
        }
    }
public function setItem ( $ name , $ value = null , $ where = '' ) { if ( $ name === null || $ where === '' ) { $ this -> putItem ( $ name , $ value ) ; } else { $ this -> setItems ( [ $ name => $ value ] , $ where ) ; } }
Sets an item. Silently resets if already exists and mov.
@param string       $name  item name
@param array        $value item value
@param string|array $where where to put, can be empty, first, last and array of before and after
Sets an item . Silently resets if already exists and mov .