mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-26 10:32:56 +01:00 
			
		
		
		
	Add hdel
This commit is contained in:
		| @@ -118,6 +118,28 @@ Command Command::get(const std::string& key) | ||||
| 	return cmd; | ||||
| } | ||||
|  | ||||
| Command Command::hdel(const std::string& hash, const std::string& field) | ||||
| { | ||||
| 	Command cmd("HDEL"); | ||||
|  | ||||
| 	cmd << hash << field; | ||||
|  | ||||
| 	return cmd; | ||||
| } | ||||
|  | ||||
| Command Command::hdel(const std::string& hash, const std::vector<std::string>& fields) | ||||
| { | ||||
| 	Command cmd("HDEL"); | ||||
|  | ||||
| 	cmd << hash; | ||||
| 	for(std::vector<std::string>::const_iterator it = fields.begin(); it != fields.end(); ++it) | ||||
| 	{ | ||||
| 		cmd << *it; | ||||
| 	} | ||||
|  | ||||
| 	return cmd; | ||||
| } | ||||
|  | ||||
| Command Command::hget(const std::string& hash, const std::string& field) | ||||
| { | ||||
| 	Command cmd("HGET"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 fbraem
					fbraem