Home  >  Q&A  >  body text

php - How to set the validity period of the sAdd command in Redis

The set command can set the expiration time in the third parameter. How can it be set like in the sAdd command?

仅有的幸福仅有的幸福2705 days ago1503

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-06-16 09:20:52

    Set expiration time for an element of the collection is not supported.
    EXPIRE key seconds, the expiration time can only be set for the key.

    reply
    0
  • Cancelreply