redis compression (#6769)

* feat(labrinth): encode/decode redis values with postcard, add version in namespaces

* chore(labrinth): split cache ex special cases without version

* chore(labrinth): simplify get_many

* fix: tombi

* feat(labrinth): compression support

* chore(labrinth): cleanup redis ser/de

* fix(labrinth): use get_deserialized in tests
This commit is contained in:
François-Xavier Talbot
2026-07-19 01:25:00 +02:00
committed by GitHub
parent 6b62e3b480
commit 6b569e4ee4
40 changed files with 361 additions and 242 deletions
+2 -2
View File
@@ -258,7 +258,7 @@ pub async fn fetch_query_context(
HashMap::new()
} else {
redis
.get_many_deserialized_from_json::<minecraft::JavaServerPing>(
.get_many_deserialized::<minecraft::JavaServerPing>(
server_ping::REDIS_NAMESPACE,
&minecraft_java_server_pings
.iter()
@@ -281,7 +281,7 @@ pub async fn fetch_query_context(
HashMap::new()
} else {
redis
.get_many_deserialized_from_json::<MinecraftServerAnalytics>(
.get_many_deserialized::<MinecraftServerAnalytics>(
MINECRAFT_SERVER_ANALYTICS,
&minecraft_server_analytics
.iter()