diff options
| author | Stefan Boberg <[email protected]> | 2023-05-15 22:30:12 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-15 22:30:12 +0200 |
| commit | 4109b2def73f703935f5946c1738585e28d1fd90 (patch) | |
| tree | 48f9824de2b3e7af4b1667169599128f34ddf327 /src | |
| parent | zenserver does not support test mode in release (diff) | |
| download | zen-4109b2def73f703935f5946c1738585e28d1fd90.tar.xz zen-4109b2def73f703935f5946c1738585e28d1fd90.zip | |
removed RefCounted from ZenCacheNamespace
also added some class comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/cache/structuredcachestore.h | 15 |
1 files changed, 13 insertions, 2 deletions
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<ZenCacheNamespace::Info> GetNamespaceInfo(std::string_view Namespace); |