diff options
Diffstat (limited to 'src/zenserver')
| -rw-r--r-- | src/zenserver/cache/structuredcachestore.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/src/zenserver/cache/structuredcachestore.h b/src/zenserver/cache/structuredcachestore.h index 5ae8b97a0..28966fc9a 100644 --- a/src/zenserver/cache/structuredcachestore.h +++ b/src/zenserver/cache/structuredcachestore.h @@ -439,16 +439,22 @@ public: ZenCacheNamespace(GcManager& Gc, const std::filesystem::path& RootDir); ~ZenCacheNamespace(); - bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue); - void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value); - bool Drop(); - bool DropBucket(std::string_view Bucket); - void Flush(); - void ScrubStorage(ScrubContext& Ctx); - uint64_t DiskLayerThreshold() const { return m_DiskLayerSizeThreshold; } - virtual void GatherReferences(GcContext& GcCtx) override; - virtual void CollectGarbage(GcContext& GcCtx) override; - virtual GcStorageSize StorageSize() const override; + bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue); + void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value); + bool Drop(); + bool DropBucket(std::string_view Bucket); + void Flush(); + uint64_t DiskLayerThreshold() const { return m_DiskLayerSizeThreshold; } + + // GcContributor + + virtual void GatherReferences(GcContext& GcCtx) override; + + // GcStorage + virtual void ScrubStorage(ScrubContext& ScrubCtx) override; + virtual void CollectGarbage(GcContext& GcCtx) override; + virtual GcStorageSize StorageSize() const override; + Info GetInfo() const; std::optional<BucketInfo> GetBucketInfo(std::string_view Bucket) const; |