mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
#3268: Poco redis command set have a bug when you want to set nx ex or expireTime
This commit is contained in:
@@ -479,7 +479,7 @@ Command Command::set(const std::string& key, const std::string& value, bool over
|
|||||||
cmd << key << value;
|
cmd << key << value;
|
||||||
if (! overwrite) cmd << "NX";
|
if (! overwrite) cmd << "NX";
|
||||||
if (! create) cmd << "XX";
|
if (! create) cmd << "XX";
|
||||||
if (expireTime.totalMicroseconds() > 0) cmd << "PX" << expireTime.totalMilliseconds();
|
if (expireTime.totalMicroseconds() > 0) cmd << "PX" << NumberFormatter::format(expireTime.totalMilliseconds());
|
||||||
|
|
||||||
return cmd;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user