普通版降重
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
266 B

import redis
pool = redis.ConnectionPool(host='localhost', port=6379, max_connections=50, db=2)
redis_ = redis.Redis(connection_pool=pool, decode_responses=True)
api_key_list_ip_1 = "api_key_192.168.1.17"
for i in range(10):
redis_.rpush(api_key_list_ip_1, i)