请问要把IP地址存入redis,应该用redis的什么类型合适? 只是在redis里存入访问ip地址,谢谢各位先
人生最曼妙的风景,竟是内心的淡定与从容!
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.
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.
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.
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.