From 1b5de92f090543f09c54492f762e418818de3582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Sun, 27 Mar 2022 20:11:56 +0200 Subject: [PATCH] #3268: Poco redis command set have a bug when you want to set nx ex or expireTime --- Redis/src/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Redis/src/Command.cpp b/Redis/src/Command.cpp index 0c2de1e17..6ed9c04e8 100644 --- a/Redis/src/Command.cpp +++ b/Redis/src/Command.cpp @@ -479,7 +479,7 @@ Command Command::set(const std::string& key, const std::string& value, bool over cmd << key << value; if (! overwrite) cmd << "NX"; if (! create) cmd << "XX"; - if (expireTime.totalMicroseconds() > 0) cmd << "PX" << expireTime.totalMilliseconds(); + if (expireTime.totalMicroseconds() > 0) cmd << "PX" << NumberFormatter::format(expireTime.totalMilliseconds()); return cmd; }