请问要把IP地址存入redis,应该用redis的什么类型合适? 只是在redis里存入访问ip地址,谢谢各位先
怪我咯2017-04-21 11:00:00
Let’s gather! Once saved, you can read it out directly without duplication, all IP addresses
迷茫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.
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.