From 4109b2def73f703935f5946c1738585e28d1fd90 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 15 May 2023 22:30:12 +0200 Subject: removed RefCounted from ZenCacheNamespace also added some class comments --- src/zenserver/cache/structuredcachestore.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/zenserver/cache/structuredcachestore.h b/src/zenserver/cache/structuredcachestore.h index 28966fc9a..6257e1f1e 100644 --- a/src/zenserver/cache/structuredcachestore.h +++ b/src/zenserver/cache/structuredcachestore.h @@ -415,7 +415,13 @@ private: ZenCacheDiskLayer& operator=(const ZenCacheDiskLayer&) = delete; }; -class ZenCacheNamespace final : public RefCounted, public GcStorage, public GcContributor +/* Z$ namespace + + A namespace scopes a set of buckets, and would typically be used to isolate + projects from each other. + + */ +class ZenCacheNamespace final : public GcStorage, public GcContributor { public: struct Configuration @@ -471,6 +477,12 @@ private: ZenCacheNamespace& operator=(const ZenCacheNamespace&) = delete; }; +/** Cache store interface + + This manages a set of namespaces used for caching purposes. + + */ + class ZenCacheStore final { public: @@ -510,7 +522,6 @@ public: const std::string_view ValueFilter) const; GcStorageSize StorageSize() const; - // const Configuration& GetConfiguration() const { return m_Configuration; } Info GetInfo() const; std::optional GetNamespaceInfo(std::string_view Namespace); -- cgit v1.2.3