search

Home  >  Q&A  >  body text

php - Why does Redis' lpush store data restore in seconds?

In fact, everything is saved successfully from 10 to 11 in one moment and then restored in the next moment
Please explain it
PS: TTL=-1
PS: Moreover, the speed of restoration is also different depending on the length of the list. The longer the list, the faster it will be restored. Only 1 or 2 will take a few seconds to restore
PS: It is okay to delete, but it will not be restored, but there is a problem with adding
< span class="img-wrap">

ringa_leeringa_lee2750 days ago416

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 13:09:51

    Is the expiration time too short?

    reply
    0
  • 为情所困

    为情所困2017-05-16 13:09:51

    This is because you LTRIM a list with a limited length. You limited the length to 10.

    reply
    0
  • Cancelreply