在django项目停止之前做一些任务

qybjjes1  于 2021-06-07  发布在  Redis
关注(0)|答案(0)|浏览(182)

如何在django项目停止之前清除redis缓存对象? (when I hit (Ctrl + c) in the server terminal or stop the daphne or gunicorn service) 有没有办法在django项目中找到这个时刻,这样就不需要在nginxserver这样的服务器中使用额外的配置和命令?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题