| 194 | } |
| 195 | |
| 196 | int KeyValueDBMemory::get_keys(const string &prefix, |
| 197 | const std::set<string> &key, |
| 198 | std::set<string> *out) { |
| 199 | if (!exists_prefix(prefix)) |
| 200 | return 0; |
| 201 | |
| 202 | for (std::set<string>::const_iterator i = key.begin(); |
| 203 | i != key.end(); |
| 204 | ++i) { |
| 205 | if (db.count(make_pair(prefix, *i))) |
| 206 | out->insert(*i); |
| 207 | } |
| 208 | return 0; |
| 209 | } |
| 210 | |
| 211 | int KeyValueDBMemory::set(const string &prefix, |
| 212 | const string &key, |
no test coverage detected