search

Home  >  Q&A  >  body text

请问要把IP地址存入redis,应该用redis的什么类型合适?

请问要把IP地址存入redis,应该用redis的什么类型合适? 只是在redis里存入访问ip地址,谢谢各位先

黄舟黄舟2854 days ago877

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-21 11:00:00

    Let’s gather! Once saved, you can read it out directly without duplication, all IP addresses

    reply
    0
  • 迷茫

    迷茫2017-04-21 11:00:00

    Unordered collection. Sets are unordered.
    At the same time, sets can randomly extract values, perform set operations, and count numbers.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 11:00:00

    I just made an IP and put it into redis, using a list. The scenario is that the IP maliciously attacks the website, and the IP needs to be restricted.

    reply
    0
  • Cancelreply