一、python使用redis
1、pycharm中的终端下
命令:pip3 install redis
2、直接使用(直接写host和port) 或者 连接池使用(connection_pool=pool) (推荐)
二、django中使用redis (既是用django中的缓存cache来存redis数据库)
2、dev文件中配置
3、t_dg文件中
总结: