aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-20 14:05:01 +0200
committerStefan Boberg <[email protected]>2021-05-20 14:05:01 +0200
commit049f51d56a59299bcbf718bf1a55d7e745f2cf57 (patch)
tree575745847cd542dde5e826da77796da2ebd8e85c /zenserver/cache/structuredcache.h
parentAdded tentative Jupiter structured data endpoints (diff)
downloadzen-049f51d56a59299bcbf718bf1a55d7e745f2cf57.tar.xz
zen-049f51d56a59299bcbf718bf1a55d7e745f2cf57.zip
WIP structured cache endpoints - tactical check-in not fully functional yet
Diffstat (limited to 'zenserver/cache/structuredcache.h')
-rw-r--r--zenserver/cache/structuredcache.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/zenserver/cache/structuredcache.h b/zenserver/cache/structuredcache.h
index d0646e6e9..48b56128f 100644
--- a/zenserver/cache/structuredcache.h
+++ b/zenserver/cache/structuredcache.h
@@ -3,15 +3,25 @@
#pragma once
#include <zencore/httpserver.h>
+#include <zencore/refcount.h>
#include "cachestore.h"
#include "upstream/jupiter.h"
namespace zen {
+class CloudCacheClient;
+
/**
* New-style cache service. Imposes constraints on keys, supports blobs and
* structured values
+ *
+ * The storage strategy is as follows:
+ *
+ * -
+ *
+ * -
+ *
*/
class HttpStructuredCacheService : public zen::HttpService
@@ -33,8 +43,9 @@ private:
[[nodiscard]] bool ValidateUri(zen::HttpServerRequest& Request, CacheRef& OutRef);
- zen::CasStore& m_CasStore;
- ZenCacheStore m_CacheStore;
+ zen::CasStore& m_CasStore;
+ ZenCacheStore m_CacheStore;
+ RefPtr<CloudCacheClient> m_Cloud;
};
} // namespace zen