aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
committerStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
commit961173f44df332cd17e1b9875e4ef5eb9cea1d3a (patch)
treea76b3adcdebd479c70c57bf9fb0391a1237dd5f4 /zenserver/cache/structuredcachestore.h
parentMade use of mimalloc controlled by define (diff)
downloadzen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.tar.xz
zen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.zip
Added more scrub stubs in higher level services
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
-rw-r--r--zenserver/cache/structuredcachestore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h
index c4fa20958..fdf4a8cfe 100644
--- a/zenserver/cache/structuredcachestore.h
+++ b/zenserver/cache/structuredcachestore.h
@@ -55,6 +55,7 @@ public:
bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue);
void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value);
bool DropBucket(std::string_view Bucket);
+ void Scrub(ScrubContext& Ctx);
private:
struct CacheBucket
@@ -80,6 +81,7 @@ public:
void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value);
bool DropBucket(std::string_view Bucket);
void Flush();
+ void Scrub(ScrubContext& Ctx);
private:
/** A cache bucket manages a single directory containing
@@ -103,6 +105,7 @@ public:
void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value);
bool DropBucket(std::string_view Bucket);
void Flush();
+ void Scrub(ScrubContext& Ctx);
private:
std::filesystem::path m_RootDir;