| 114 | } |
| 115 | |
| 116 | void StringStorageBase::DeleteKeyAndValue(std::string_view key) |
| 117 | { |
| 118 | std::lock_guard guard(m_mutex); |
| 119 | |
| 120 | auto const found = m_values.find(key); |
| 121 | if (found != m_values.end()) |
| 122 | { |
| 123 | m_values.erase(found); |
| 124 | Save(); |
| 125 | } |
| 126 | } |
| 127 | } // namespace platform |