mirrors_openresty/lua-resty-core 代码Wiki统计流水线 服务 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号?立即登录 该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
lua-resty-core是 OpenResty 组件的一部分。它由两部分组成,一部分是resty.core.*,提供了对 lua-nginx-module Lua 接口的替换实现;另一部分是ngx.*,OpenResty 新的接口一般都会放到这里。 跟其他 lua-resty 开头的库一样,lua-resty-core 也是用 Lua 实现的。说到这有人可能会问,既然 lua-nginx-module 已经...
启动lua-resty-core的方式也很简单,只需要在 init_by_lua 阶段,增加一行代码就可以了: require"resty.core" lua-resty-core高效的原因是因为其能被JIT追踪和优化,所以,如果所写的代码不能被JIT优化,需要在解释模式下执行,那么反而性能可能更差
lua-resty-coreソースパッケージをダウンロード: [lua-resty-core_0.1.28-2.dsc] [lua-resty-core_0.1.28.orig.tar.gz] [lua-resty-core_0.1.28-2.debian.tar.xz] メンテナ: Ubuntu MOTU Developers(メールアーカイブ) Please considerfiling a bugorasking a questionvia Launchpad before contac...
综上所述,虽然没有直接的发布说明指出lua-resty-core是ngx_lua v0.10.16的必需依赖,但基于其设计目的和OpenResty的发展趋势,可以认为在新版本中强调lua-resty-core的使用是为了确保最佳性能和稳定性。因此,在部署和使用ngx_lua v0.10.16及以后版本时,建议考虑集成lua-resty-core库。
Back to TOC See Also thelua-resty-corelibrary. the ngx_lua module:https://github.com/openresty/lua-nginx-module OpenResty:https://openresty.org Back to TOC
Here is my nginx.conf worker_processes 1; error_log logs/error.log; events { worker_connections 1024; } http { server { listen 38000; server_name localhost; location = /t { content_by_lua_file conf/tcp_demo.lua; } } } stream { server { l...
This function returns a Lua (array) table (with integer keys) containing the split values.In case of error, nil will be returned as well as a string describing the error.When regex contains a sub-match capturing group, and when such a match is found, the first submatch capture will be...
lua-resty-core 是把 lua-nginx-module 已有的部分 API,使用 FFI 的模式重新实现了一遍。使用FFI实现的代码更为简洁易懂,而且因为可以被...
local base = require "resty.core.base" local utils = require "resty.core.utils" local subsystem = ngx.config.subsystem local FFI_BAD_CONTEXT = base.FFI_BAD_CONTEXT local FFI_DECLINED = base.FFI_DECLINED local FFI_OK = base.FFI_OK local clear_tab = base.clear_tab local new_tab = base...