From 4c5d300d033d78753368078a80e44a213a7759c4 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Thu, 30 Nov 2023 04:25:09 -0500 Subject: [PATCH] use ahash hasher in cached crate - also added TODO for redis tcp_nodelay feature. It was available on 0.24 which was yanked --- Cargo.lock | 1 + Cargo.toml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index ee4dcc721..1cbed198b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -835,6 +835,7 @@ version = "0.46.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7c8c50262271cdf5abc979a5f76515c234e764fa025d1ba4862c0f0bcda0e95" dependencies = [ + "ahash 0.8.6", "cached_proc_macro", "cached_proc_macro_types", "hashbrown 0.14.3", diff --git a/Cargo.toml b/Cargo.toml index dcbd53673..6b22dc894 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,6 +74,7 @@ bincode = "1.3" byteorder = "1.5" bytes = "1" cached = { version = "0.46", default-features = false, features = [ + "ahash", "proc_macro", "redis_ahash", ], optional = true } @@ -162,6 +163,7 @@ rand = "0.8" rayon = "1.8" redis = { version = "0.23", features = [ "ahash", + # "tcp_nodelay", // TODO: enable when this feature is available again ], default-features = false, optional = true } regex = "1" reqwest = { version = "0.11", features = [