请问要把IP地址存入redis,应该用redis的什么类型合适?
黄舟
黄舟 2017-04-21 10:58:00
0
3
840

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
刘奇

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

迷茫

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

Ty80

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template