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上工作?該文檔在主題上不清楚。