python 關閉redis鏈接

python讀寫redis時,到底需不須要關閉redis鏈接池鏈接? import redis def RedisUtils(): pool = redis.ConnectionPool(host='172.8.10.145', port=6379, password="xxxxxx", decode_responses=True) r = redis.Redis(connect
相關文章
相關標籤/搜索