Redis's command to set the expiration time [Notes]

If you use a data to set the expiration time, and replace the key with a new value (or use the original value), then the previously set expiration time becomes invalid and needs to be reset. If it is only after the rename key, the expiration time can continue to exist.

Guess you like

Origin blog.csdn.net/weixin_43983411/article/details/110753977