| 28 | } |
| 29 | |
| 30 | bool InMemoryKeychain::erase(const StringBox& key) { |
| 31 | std::lock_guard<Mutex> lock(_mutex); |
| 32 | const auto& it = _blobs.find(key); |
| 33 | if (it == _blobs.end()) { |
| 34 | return false; |
| 35 | } |
| 36 | _updateSequence++; |
| 37 | _blobs.erase(it); |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | uint64_t InMemoryKeychain::getUpdateSequence() const { |
| 42 | std::lock_guard<Mutex> lock(_mutex); |
no test coverage detected