示例#1
0
Status ClientImpl::qpop(const std::string &name, std::string *item){
	const std::vector<std::string> *resp;
	resp = this->request("qpop", name);
	return _read_str(resp, item);
}
示例#2
0
Status ClientImpl::qget(const std::string &name, int64_t index, std::string *val){
	const std::vector<std::string> *resp;
	std::string s_index = str(index);
	resp = this->request("qget", name, s_index);
	return _read_str(resp, val);
}
示例#3
0
Status ClientImpl::hget(const std::string &name, const std::string &key, std::string *val){
	const std::vector<std::string> *resp;
	resp = this->request("hget", name, key);
	return _read_str(resp, val);
}
示例#4
0
Status ClientImpl::qback(const std::string &name, std::string *ret){
	const std::vector<std::string> *resp;
	resp = this->request("qback", name);
	return _read_str(resp, ret);
}