Commit 246b71e 1 parent 193d4b6 commit 246b71e Copy full SHA for 246b71e
File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ async fn pathfinding_blocks_batch(
245
245
246
246
// Try to retrieve the result from Valkey
247
247
let pathfinding_cached_results: Vec < Option < PathfindingResult > > =
248
- valkey_conn. compressed_get_bulk ( & hashes) . await ?;
248
+ valkey_conn. json_get_bulk ( & hashes) . await ?;
249
249
let pathfinding_cached_results: HashMap < _ , _ > =
250
250
hashes. into_iter ( ) . zip ( pathfinding_cached_results) . collect ( ) ;
251
251
@@ -325,7 +325,7 @@ async fn pathfinding_blocks_batch(
325
325
}
326
326
327
327
debug ! ( nb_cached = to_cache. len( ) , "Caching pathfinding response" ) ;
328
- valkey_conn. compressed_set_bulk ( & to_cache) . await ?;
328
+ valkey_conn. json_set_bulk ( & to_cache) . await ?;
329
329
330
330
Ok ( pathfinding_results)
331
331
}
Original file line number Diff line number Diff line change @@ -526,9 +526,8 @@ pub async fn consist_train_simulation_batch(
526
526
nb_unique_sim = to_sim. len( )
527
527
) ;
528
528
let cached_simulation_hash = to_sim. keys ( ) . collect :: < Vec < _ > > ( ) ;
529
- let cached_results: Vec < Option < SimulationResponse > > = valkey_conn
530
- . compressed_get_bulk ( & cached_simulation_hash)
531
- . await ?;
529
+ let cached_results: Vec < Option < SimulationResponse > > =
530
+ valkey_conn. json_get_bulk ( & cached_simulation_hash) . await ?;
532
531
533
532
let nb_hit = cached_results. iter ( ) . flatten ( ) . count ( ) ;
534
533
let nb_miss = to_sim. len ( ) - nb_hit;
@@ -574,7 +573,7 @@ pub async fn consist_train_simulation_batch(
574
573
}
575
574
576
575
// Cache the simulation response
577
- valkey_conn. compressed_set_bulk ( & to_cache) . await ?;
576
+ valkey_conn. json_set_bulk ( & to_cache) . await ?;
578
577
579
578
// Return the response
580
579
Ok ( simulation_results
You can’t perform that action at this time.
0 commit comments