public function shift () {
        if ($this->name === null) {
            throw new InvalidConfigException(get_class ($this) . " requires a name!");
        }
        $item = $this->getConnection ()->getClient ()->lpop ($this->name);
        $this->_data = null;
        $this->_count = null;
        return $item;
    }