public function remove ($item) {
        if ($this->name === null) {
            throw new InvalidConfigException(get_class ($this) . " requires a name!");
        }
        if (!$this->getConnection ()->getClient ()->lrem ($this->name , $item , 1)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        return true;
    }
public function remove ($item) {
        if ($this->name === null) {
            throw new InvalidConfigException(get_class ($this) . " requires a name!");
        }
        if (!$this->getConnection ()->getClient ()->lrem ($this->name , $item , 1)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        return true;
    }
public function remove ( $ item ) { if ( $ this -> name === null ) { throw new InvalidConfigException ( get_class ( $ this ) . " requires a name!" ) ; } if ( ! $ this -> getConnection ( ) -> getClient ( ) -> lrem ( $ this -> name , $ item , 1 ) ) { return false ; } $ this -> _data = null ; $ this -> _count = null ; return true ; }
Removes an item from the list
@param mixed $item the item to remove
@return bool true if the item was removed, otherwise false
@throws InvalidConfigException
Removes an item from the list