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; }