@@ -1694,7 +1694,7 @@ namespace cpp_redis {
16941694 }
16951695
16961696 client &
1697- client::psetex (const std::string &key, int ms, const std::string &val,
1697+ client::psetex (const std::string &key, int64_t ms, const std::string &val,
16981698 const reply_callback_t &reply_callback) {
16991699 send ({" PSETEX" , key, std::to_string (ms), val}, reply_callback);
17001700 return *this ;
@@ -1967,7 +1967,7 @@ namespace cpp_redis {
19671967 }
19681968
19691969 client &
1970- client::setex (const std::string &key, int seconds, const std::string &value, const reply_callback_t &reply_callback) {
1970+ client::setex (const std::string &key, int64_t seconds, const std::string &value, const reply_callback_t &reply_callback) {
19711971 send ({" SETEX" , key, std::to_string (seconds), value}, reply_callback);
19721972 return *this ;
19731973 }
@@ -4020,7 +4020,7 @@ namespace cpp_redis {
40204020 }
40214021
40224022 std::future<reply>
4023- client::psetex (const std::string &key, int ms, const std::string &val) {
4023+ client::psetex (const std::string &key, int64_t ms, const std::string &val) {
40244024 return exec_cmd ([=](const reply_callback_t &cb) -> client & { return psetex (key, ms, val, cb); });
40254025 }
40264026
@@ -4199,7 +4199,7 @@ namespace cpp_redis {
41994199 }
42004200
42014201 std::future<reply>
4202- client::setex (const std::string &key, int seconds, const std::string &value) {
4202+ client::setex (const std::string &key, int64_t seconds, const std::string &value) {
42034203 return exec_cmd ([=](const reply_callback_t &cb) -> client & { return setex (key, seconds, value, cb); });
42044204 }
42054205
0 commit comments