1
我试图使用缓存和requests_cache
Redis的我的要求,像这样的连接:requests_cache:使用REDIS_URL
requests_cache.install_cache(
'requests_cache', backend='redis', expire_after=600
)
当Redis的是在localhost:6379
运行,一切都很好,并开箱的。
Error 111 connecting to localhost:6379. Connection refused.
所以现在的问题是,我该如何使它:
然而,当我部署我的应用程序的Heroku,那里是一个REDIS_URL环境变量,上面的命令,因为obviousle REDIS_URL不指向localhost
失败在Heroku上工作?该文档在主题上不清楚。