From a4588122e3f112680b187e7beff4bf333d039377 Mon Sep 17 00:00:00 2001 From: YunoL Date: Tue, 31 Jan 2023 10:43:47 +0100 Subject: [PATCH] Fix set expire (replace push_integer by push_bulk) --- src/cmd/set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/set.rs b/src/cmd/set.rs index eae05d7..900555c 100644 --- a/src/cmd/set.rs +++ b/src/cmd/set.rs @@ -154,7 +154,7 @@ impl Set { // src/bin/cli.rs parses the expiration argument as milliseconds // in duration_from_ms_str() frame.push_bulk(Bytes::from("px".as_bytes())); - frame.push_int(ms.as_millis() as u64); + frame.push_bulk(Bytes::from(ms.as_millis().to_string())); } frame }