diff options
| author | Stefan Boberg <[email protected]> | 2021-05-18 22:49:45 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-18 22:50:15 +0200 |
| commit | d38a000ffd19d404d9f93a0f56a6c8be04ef258d (patch) | |
| tree | c5ced3ce194cbb1c888ce5b142b3e3cc2ca9df24 /zenserver/upstream/jupiter.h | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen into main (diff) | |
| download | zen-d38a000ffd19d404d9f93a0f56a6c8be04ef258d.tar.xz zen-d38a000ffd19d404d9f93a0f56a6c8be04ef258d.zip | |
Partial implementation of Jupiter chunk filtering, pending more information about response format
Also implemented compact binary PUT
Diffstat (limited to 'zenserver/upstream/jupiter.h')
| -rw-r--r-- | zenserver/upstream/jupiter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/zenserver/upstream/jupiter.h b/zenserver/upstream/jupiter.h index dd01cfb86..5bcec2904 100644 --- a/zenserver/upstream/jupiter.h +++ b/zenserver/upstream/jupiter.h @@ -8,6 +8,7 @@ #include <atomic> #include <list> #include <memory> +#include <vector> namespace zen { namespace detail { @@ -17,6 +18,7 @@ namespace detail { class IoBuffer; class CloudCacheClient; struct IoHash; +class CbObjectView; /** * Cached access token, for use with `Authorization:` header @@ -47,8 +49,10 @@ public: CloudCacheSession(CloudCacheClient* OuterClient); ~CloudCacheSession(); - IoBuffer Get(std::string_view BucketId, std::string_view Key); - void Put(std::string_view BucketId, std::string_view Key, IoBuffer Data); + IoBuffer Get(std::string_view BucketId, std::string_view Key); + void Put(std::string_view BucketId, std::string_view Key, IoBuffer Data); + void Put(std::string_view BucketId, std::string_view Key, CbObjectView Data); + std::vector<IoHash> Filter(std::string_view BucketId, const std::vector<IoHash>& ChunkHashes); private: RefPtr<CloudCacheClient> m_CacheClient; |