GroupKV: Add group_exists checker

This commit is contained in:
HanishKVC 2024-05-11 19:18:19 +05:30
parent dde72df9d3
commit f294fddf43

View file

@ -99,6 +99,12 @@ public:
return ss.str();
}
bool group_exists(const std::string &group) {
if (gkv.find(group) == gkv.end()) {
return false;
}
return true;
}
template<typename SupportedDataType>
void set_value(const std::string &group, const MultiPart &keyParts, const SupportedDataType &value, const std::string &callerName="") {