[英]Openresty: ngx.var vs ngx.ctx
What's the use case differences between ngx.var
and ngx.ctx
? ngx.var
和ngx.ctx
之间的用例区别是什么? When should one use var
vs ctx
? 什么时候应该使用
var
vs ctx
? Are there any performance differences one should know about? 是否应该了解任何性能差异?
我绝对不是主题专家,但是从我的搜索冒险中可以得出的结论是:ngx.var比ngx.ctx昂贵,而且ngx.var仅适用于字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.