public function pop () {
        if ($this->name === null) {
            throw new InvalidConfigException(get_class ($this) . " requires a name!");
        }
        $item = $this->getConnection ()->getClient ()->rpop ($this->name);
        $this->_data = null;
        $this->_count = null;
        return $item;
    }
public function pop () {
        if ($this->name === null) {
            throw new InvalidConfigException(get_class ($this) . " requires a name!");
        }
        $item = $this->getConnection ()->getClient ()->rpop ($this->name);
        $this->_data = null;
        $this->_count = null;
        return $item;
    }
public function pop ( ) { if ( $ this -> name === null ) { throw new InvalidConfigException ( get_class ( $ this ) . " requires a name!" ) ; } $ item = $ this -> getConnection ( ) -> getClient ( ) -> rpop ( $ this -> name ) ; $ this -> _data = null ; $ this -> _count = null ; return $ item ; }
Removes and returns the last item from the list
@return mixed the item that was removed from the list
@throws InvalidConfigException
Removes and returns the last item from the list