aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
-rw-r--r--zenserver/cache/structuredcachestore.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h
index 67bb9c7bf..10335890f 100644
--- a/zenserver/cache/structuredcachestore.h
+++ b/zenserver/cache/structuredcachestore.h
@@ -372,10 +372,13 @@ public:
virtual GcStorageSize StorageSize() const override;
private:
- Ref<ZenCacheNamespace> GetStore(std::string_view Namespace);
- std::vector<Ref<ZenCacheNamespace>> GetAllStores() const;
- mutable RwLock m_NamespacesLock;
- std::unordered_map<std::string, Ref<ZenCacheNamespace>> m_Namespaces;
+ Ref<ZenCacheNamespace> GetStore(std::string_view Namespace);
+ void IterateStores(const std::function<void(const Ref<ZenCacheNamespace>& Store)>& Callback) const;
+
+ typedef std::unordered_map<std::string, Ref<ZenCacheNamespace>> NameSpaceMap;
+
+ mutable RwLock m_NamespacesLock;
+ NameSpaceMap m_Namespaces;
};
void z$_forcelink();