修改redis值

import redis redis_host = "444" redis_port = 555 rdp = redis.ConnectionPool(host=redis_host, port=redis_port) REDIS_POOL = redis.StrictRedis(connection_pool=rdp) if REDIS_POOL.ping(): print("redis client pool inited") else: print("failed to init redis client pool, exit") #REDIS_POOL.set(key, value)

posted on 2021-01-28 18:07  xingxing666  阅读(929)  评论(0编辑  收藏  举报

导航