<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>OpenResty - 分类 - Windvalley</title><link>https://windvalley.github.io/categories/openresty/</link><description>OpenResty - 分类 - Windvalley</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>levinwang6@gmail.com (windvalley)</managingEditor><webMaster>levinwang6@gmail.com (windvalley)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Mon, 22 Jul 2019 23:03:32 +0800</lastBuildDate><atom:link href="https://windvalley.github.io/categories/openresty/" rel="self" type="application/rss+xml"/><item><title>OpenResty数据共享的几种方式</title><link>https://windvalley.github.io/openresty-data-share/</link><pubDate>Mon, 22 Jul 2019 23:03:32 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-data-share/</guid><description>ngx.var 变量 数据生命周期: 同一个请求的所有执行阶段, 请求结束后自动销毁, 另外, 可以跨 location, 也就是说在内部重定向(ngx.exec)或外部重定向(ngx</description></item><item><title>如何调试OpenResty的Lua代码</title><link>https://windvalley.github.io/openresty-debug/</link><pubDate>Wed, 10 Jul 2019 23:56:36 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-debug/</guid><description>在适当位置打印输出 使用print 使用print(), 相当于ngx.log(ngx.NOTICE, ...), 适用于所有阶段. nginx.conf 1 2 # 设置为notice</description></item><item><title>OpenResty中大型项目的代码组织方式介绍</title><link>https://windvalley.github.io/openresty-big-project-code-orgnization/</link><pubDate>Mon, 01 Jul 2019 14:34:54 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-big-project-code-orgnization/</guid><description>适用于中大型项目, 包含多个功能模块, 每个功能模块需要在各自的不同执行阶段通过回调函数传参的方式来高效的共享数据. 具体的某个功能模块文件举例 lua/modules/module1.lua</description></item><item><title>为OpenResty封装一个更易用更健壮的redis</title><link>https://windvalley.github.io/openresty-redis-wrap/</link><pubDate>Sat, 29 Jun 2019 16:48:06 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-redis-wrap/</guid><description>功能 封装一个代码清晰简单易用的redis 完整代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46</description></item><item><title>OpenResty编码规范</title><link>https://windvalley.github.io/openresty-code-conventions/</link><pubDate>Sat, 01 Jun 2019 23:52:42 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-code-conventions/</guid><description>变量名 所有变量都使用local声明, 限制作用域. 变量名小写, 使用下划线连接. 常量名 常量名全部大写, 多个单词通过下划线_连接. 文件名 lua文件</description></item><item><title>OpenResty编程tips</title><link>https://windvalley.github.io/openresty-tips/</link><pubDate>Sun, 28 Apr 2019 11:58:13 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/openresty-tips/</guid><description>Lua 中定义和调用函数时点号和冒号的区别 定义table中的函数时和调用table中的函数时, 冒号:和点号.的区别是什么. 定义 function 1 2 3 4 5 6 7 8 9</description></item><item><title>Nginx主要的超时时间指令详解</title><link>https://windvalley.github.io/nginx-timeout-directives/</link><pubDate>Thu, 02 Jun 2016 10:42:15 +0800</pubDate><author>作者</author><guid>https://windvalley.github.io/nginx-timeout-directives/</guid><description>模块ngx_http_core_module下的超时时间指令 Syntax: client_body_timeout time; Default: client_body_timeout 60s; Context: http, server, location 适用于有请求体的客户端请求, 比如POST, 表示nginx读取</description></item></channel></rss>