diff options
| author | Stefan Boberg <[email protected]> | 2021-05-20 14:02:02 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-20 14:02:02 +0200 |
| commit | 949cf64f620529b3a943828333a176d2f3bfb494 (patch) | |
| tree | 981397984bf520cafc0cd49dd790062db6e3f936 /zenserver/upstream/jupiter.h | |
| parent | Added HttpServerRequest::RequestContentType() (diff) | |
| download | zen-949cf64f620529b3a943828333a176d2f3bfb494.tar.xz zen-949cf64f620529b3a943828333a176d2f3bfb494.zip | |
Added tentative Jupiter structured data endpoints
Diffstat (limited to 'zenserver/upstream/jupiter.h')
| -rw-r--r-- | zenserver/upstream/jupiter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zenserver/upstream/jupiter.h b/zenserver/upstream/jupiter.h index dd01cfb86..c17ffb047 100644 --- a/zenserver/upstream/jupiter.h +++ b/zenserver/upstream/jupiter.h @@ -2,6 +2,7 @@ #pragma once +#include <zencore/httpserver.h> #include <zencore/refcount.h> #include <zencore/thread.h> @@ -47,9 +48,14 @@ public: CloudCacheSession(CloudCacheClient* OuterClient); ~CloudCacheSession(); + // Key-value cache operations IoBuffer Get(std::string_view BucketId, std::string_view Key); void Put(std::string_view BucketId, std::string_view Key, IoBuffer Data); + // Structured cache operations + IoBuffer Get(std::string_view BucketId, const IoHash& Key); + void Put(std::string_view BucketId, const IoHash& Key, IoBuffer Data, HttpContentType ContentType); + private: RefPtr<CloudCacheClient> m_CacheClient; detail::CloudCacheSessionState* m_SessionState; |