diff options
| author | Stefan Boberg <[email protected]> | 2021-08-17 15:18:37 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-17 15:18:51 +0200 |
| commit | 9deb4d7904deff765e034c2528dfca93b6cdb714 (patch) | |
| tree | 531616ce61b0cf062d38e1a5421183639d22344f /zenserver/cache/structuredcachestore.h | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen into main (diff) | |
| download | zen-9deb4d7904deff765e034c2528dfca93b6cdb714.tar.xz zen-9deb4d7904deff765e034c2528dfca93b6cdb714.zip | |
Implemented support for dropping z$ buckets while online
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
| -rw-r--r-- | zenserver/cache/structuredcachestore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h index 781a6e636..48c3cfde9 100644 --- a/zenserver/cache/structuredcachestore.h +++ b/zenserver/cache/structuredcachestore.h @@ -56,6 +56,7 @@ public: bool Get(std::string_view Bucket, const zen::IoHash& HashKey, ZenCacheValue& OutValue); void Put(std::string_view Bucket, const zen::IoHash& HashKey, const ZenCacheValue& Value); + bool DropBucket(std::string_view Bucket); private: struct CacheBucket @@ -79,7 +80,7 @@ public: bool Get(std::string_view Bucket, const zen::IoHash& HashKey, ZenCacheValue& OutValue); void Put(std::string_view Bucket, const zen::IoHash& HashKey, const ZenCacheValue& Value); - + bool DropBucket(std::string_view Bucket); void Flush(); private: @@ -102,6 +103,7 @@ public: bool Get(std::string_view Bucket, const zen::IoHash& HashKey, ZenCacheValue& OutValue); void Put(std::string_view Bucket, const zen::IoHash& HashKey, const ZenCacheValue& Value); + bool DropBucket(std::string_view Bucket); void Flush(); private: |