mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Add hexists
This commit is contained in:
@@ -140,6 +140,15 @@ Command Command::hdel(const std::string& hash, const std::vector<std::string>& f
|
||||
return cmd;
|
||||
}
|
||||
|
||||
Command Command::hexists(const std::string& hash, const std::string& field)
|
||||
{
|
||||
Command cmd("HEXISTS");
|
||||
|
||||
cmd << hash << field;
|
||||
|
||||
return cmd;
|
||||
}
|
||||
|
||||
Command Command::hget(const std::string& hash, const std::string& field)
|
||||
{
|
||||
Command cmd("HGET");
|
||||
|
||||
Reference in New Issue
Block a user