diff --git a/server/WebApi.cpp b/server/WebApi.cpp index be1f7a96..bfd626cc 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -323,6 +323,11 @@ public: return _map.erase(key); } + size_t size() { + std::lock_guard lck(_mtx); + return _map.size(); + } + Pointer find(const std::string &key) const { std::lock_guard lck(_mtx); auto it = _map.find(key);