OpenResty多级缓存 nginx、redis、mysql
需要先安装好OpenResty
然后对nginx的配置进行设置:
添加配置
lua_shared_dict my_cache 128m;
以及
location /update_content {
content_by_lua_file /root/lua/update_content.lua;
#需要在相应位置添加lua脚本 lua脚本的编写在下面 自己改改就可以了
}
http {
include mime.types;
default_typ
原创
2020-07-17 22:30:18 ·
455 阅读 ·
1 评论