Nginx与OpenResty多级缓存及Lua扩展配置指南.pdfVIP

  • 1
  • 0
  • 约1.65千字
  • 约 2页
  • 2026-05-21 发布于北京
  • 举报

Nginx与OpenResty多级缓存及Lua扩展配置指南.pdf

*

查询优化技术之多级缓存

nginx的缓存配方式

nginxcache缓存的配置方法:在nginx.conf中申明如下内容

#cache

_cache_path//usr/local/openresty/nginx/cache_templevels=1:2keys_zone=tmp_cache:100minactive=7dmax_size

#//usr/local/openresty/nginx/cache_temp

#levels:

#keys_zonetmp_cache100mkey

#inactive7

#max_size100g

location内加入

_cachetmp_cache;

文档评论(0)

1亿VIP精品文档

相关文档