Why is the set type used by redis cleared every day?
習慣沉默
習慣沉默 2017-05-16 13:18:26
0
2
478

There is no survival time set for the key, but every morning I find that the data from the previous day has been lost. What is the reason? Asking for guidance

View key survival time

ttl ip_blacklist (integer) -1

View the type of value

type ip_blacklist set

View stored values

SMEMBERS ip_blacklist 1) "127.0.0.1"

You will find that ip_blacklist is empty the next day

習慣沉默
習慣沉默

reply all (2)
黄舟

Is there no persistence, resulting in data loss

    刘奇

    Is it because Redis stores too many things and the original values are cleared?

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!