search

Home  >  Q&A  >  body text

Redis中SETEX命令中的seconds是否有最大限制?

SETEX key seconds value

其中的seconds是否有最大限制,我想设置为720小时,也就是2592000秒。
[文档地址]

巴扎黑巴扎黑2798 days ago791

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-21 11:20:13

    This is related to the system. The maximum value on ubuntu10.04 (x64) is 9223372036854775807 (2^63-1)s, which is 292471208677.5360162037037037037 when converted to an adult, which is enough for you

    reply
    0
  • PHPz

    PHPz2017-04-21 11:20:13

    I don’t know what happened to the title and cannot be modified.
    Modified to "Is there a maximum limit on seconds in the SETEX command in Redis?"

    reply
    0
  • Cancelreply