aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-24 19:26:40 +0200
committerStefan Boberg <[email protected]>2021-05-24 19:26:40 +0200
commite70e2b4453a27d9d1caf77224ffd6335c50981fb (patch)
tree05d469aa1c3ab6c1840fd4732696c708d1a2a07d /zenserver/cache/structuredcache.h
parentValidate payloads using embedded CompressedBuffer hash (diff)
downloadzen-e70e2b4453a27d9d1caf77224ffd6335c50981fb.tar.xz
zen-e70e2b4453a27d9d1caf77224ffd6335c50981fb.zip
Added CidStore, currently used to track relationships between compressed and uncompressed chunk hashes
This first implementation is in-memory only, persistence is next
Diffstat (limited to 'zenserver/cache/structuredcache.h')
-rw-r--r--zenserver/cache/structuredcache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcache.h b/zenserver/cache/structuredcache.h
index 761bf3399..63d0a0d52 100644
--- a/zenserver/cache/structuredcache.h
+++ b/zenserver/cache/structuredcache.h
@@ -11,6 +11,7 @@
namespace zen {
class CloudCacheClient;
+class CidStore;
/**
* New-style cache service. Imposes constraints on keys, supports blobs and
@@ -27,7 +28,7 @@ class CloudCacheClient;
class HttpStructuredCacheService : public zen::HttpService
{
public:
- HttpStructuredCacheService(std::filesystem::path RootPath, zen::CasStore& InStore);
+ HttpStructuredCacheService(std::filesystem::path RootPath, zen::CasStore& InStore, zen::CidStore& InCidStore);
~HttpStructuredCacheService();
virtual const char* BaseUri() const override;
@@ -47,6 +48,7 @@ private:
void HandleCachePayloadRequest(zen::HttpServerRequest& Request, CacheRef& Ref);
zen::CasStore& m_CasStore;
+ zen::CidStore& m_CidStore;
ZenCacheStore m_CacheStore;
RefPtr<CloudCacheClient> m_Cloud;
};