| 65 | bool put(std::unique_ptr<LocalCacheObject> object); |
| 66 | |
| 67 | void remove(const std::string& key) { |
| 68 | std::unique_lock lck{mtx}; |
| 69 | cachedObjects.erase(key); |
| 70 | } |
| 71 | |
| 72 | private: |
| 73 | std::unordered_map<std::string, std::unique_ptr<LocalCacheObject>> cachedObjects; |