|
|
|
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)
|