diff options
| author | Stefan Boberg <[email protected]> | 2021-05-20 14:05:01 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-20 14:05:01 +0200 |
| commit | 049f51d56a59299bcbf718bf1a55d7e745f2cf57 (patch) | |
| tree | 575745847cd542dde5e826da77796da2ebd8e85c /zenserver/cache/structuredcache.h | |
| parent | Added tentative Jupiter structured data endpoints (diff) | |
| download | zen-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.h | 15 |
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 |