diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-19 22:34:00 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-19 22:34:00 +0200 |
| commit | 421701a530f7f69d0148e0f9ccd45b31b0801d6d (patch) | |
| tree | f85199c897ad5942d25a6a4edb88c9b238797be2 /zenutil | |
| parent | Merge pull request #100 from EpicGames/de/fix-retry-logic-for-standalone-cach... (diff) | |
| parent | fix tests (diff) | |
| download | zen-421701a530f7f69d0148e0f9ccd45b31b0801d6d.tar.xz zen-421701a530f7f69d0148e0f9ccd45b31b0801d6d.zip | |
Merge pull request #99 from EpicGames/de/move-namespace-field
Keep Namespace out of CacheKey and store it on request level
Diffstat (limited to 'zenutil')
| -rw-r--r-- | zenutil/include/zenutil/cache/cachekey.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/zenutil/include/zenutil/cache/cachekey.h b/zenutil/include/zenutil/cache/cachekey.h index 427c99435..9adde8fc7 100644 --- a/zenutil/include/zenutil/cache/cachekey.h +++ b/zenutil/include/zenutil/cache/cachekey.h @@ -12,21 +12,13 @@ namespace zen { struct CacheKey { - std::string Namespace; std::string Bucket; IoHash Hash; - static CacheKey Create(std::string_view Namespace, std::string_view Bucket, const IoHash& Hash) - { - return {.Namespace = ToLower(Namespace), .Bucket = ToLower(Bucket), .Hash = Hash}; - } + static CacheKey Create(std::string_view Bucket, const IoHash& Hash) { return {.Bucket = ToLower(Bucket), .Hash = Hash}; } auto operator<=>(const CacheKey& that) const { - if (auto n = caseSensitiveCompareStrings(Namespace, that.Namespace); n != std::strong_ordering::equal) - { - return n; - } if (auto b = caseSensitiveCompareStrings(Bucket, that.Bucket); b != std::strong_ordering::equal) { return b; |