aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-13 11:43:29 +0100
committerPer Larsson <[email protected]>2021-12-13 11:43:29 +0100
commit7d8f6c99372c6157cc4db02d7c249985c789fc7d (patch)
tree1a5527c9431d9382e0c48a06a626928c3bd745b5 /zenstore/include
parentAdded support for triggering GC with different params and refactored GC sched... (diff)
downloadzen-7d8f6c99372c6157cc4db02d7c249985c789fc7d.tar.xz
zen-7d8f6c99372c6157cc4db02d7c249985c789fc7d.zip
Refactored z$ GC.
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/gc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h
index 20aada746..995453d47 100644
--- a/zenstore/include/zenstore/gc.h
+++ b/zenstore/include/zenstore/gc.h
@@ -51,12 +51,16 @@ public:
void ContributeCids(std::span<const IoHash> Cid);
void ContributeCas(std::span<const IoHash> Hash);
+ void ContributeCacheKeys(std::vector<IoHash> ValidKeys, std::vector<IoHash> ExpiredKeys);
void IterateCids(std::function<void(const IoHash&)> Callback);
void FilterCids(std::span<const IoHash> Cid, std::function<void(const IoHash&)> KeepFunc);
void FilterCas(std::span<const IoHash> Cas, std::function<void(const IoHash&)> KeepFunc);
+ std::span<const IoHash> ValidCacheKeys() const;
+ std::span<const IoHash> ExpiredCacheKeys() const;
+
bool IsDeletionMode() const;
void SetDeletionMode(bool NewState);