#3268: Poco redis command set have a bug when you want to set nx ex or expireTime

This commit is contained in:
Günter Obiltschnig
2022-03-27 20:11:56 +02:00
parent 2ec44c756b
commit 1b5de92f09

View File

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