1、安装
pip install flask-session
2、使用
方式一:
import redis pool = redis.ConnectionPool(host="10.0.0.10", password="azn950626", port=6379) single_pool = redis.Redis(connection_pool=pool)
1、安装
pip install flask-session
2、使用
方式一:
import redis pool = redis.ConnectionPool(host="10.0.0.10", password="azn950626", port=6379) single_pool = redis.Redis(connection_pool=pool)
相关文章: