gunicorn+gevent monkey patch threadlocals自动变成greenletlocals吗?

2024-10-16 20:45:11 发布

您现在位置:Python中文网/ 问答频道 /正文

在gevent模式下运行gunicorn时,monkey patches (particularly those for threadlocals) described here(它使threadlocals变成greenlet局部变量)是否已经自动应用?在

(我正在运行django,目前正在使用threadlocals来快速缓存大型查询结果——我知道gevent/greenlet使用了传统线程的替代模型,因此我很担心)。在


Tags: djangoforhere模式gevent传统greenletmonkey