-- file myapp.lua: example "myapp" modulelocal_M={}-- alternatively: local lrucache = require "resty.lrucache.pureffi"locallrucache=require"resty.lrucache"-- we need to initialize the cache on the lua module level so that-- it can be shared by all the requests served by each nginx ...
jzz/lua-resty-lrucache 代码Issues0Pull Requests0Wiki统计流水线 服务 我知道了,不再自动展开 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号?立即登录 该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
name=lua-resty-lrucache abstract=Lua-land LRU Cache based on LuaJIT FFI author=Yichun Zhang (agentzh) is_original=yes license=2bsd lib_dir=lib doc_dir=lib repo_link=https://github.com/openresty/lua-resty-lrucache main_module=lib/resty/lrucache.lua ...
Greetings. I installed Nginx and nginx-mod-lua via package manager, then I created a file ngx_http_lua.module in /etc/nginx/module.d and added ‘load_module /usr/lib/nginx/modules/ngx_http_lua_module. so;’ to connect the additional module, then I rebooted Nginx but the system log I...
其他与 lua-resty-lrucache 有关的软件包 依赖 推荐 建议 enhances libluajit-5.1-2 OpenResty-maintained branch of LuaJIT (shared objects) 下载lua-resty-lrucache 硬件架构软件包大小安装后大小文件 all10.8 kB42.0 kB[文件列表]
Lua-resty-lrucache 基于FFI(Foreign Function Interface)实现的LRU缓存库,用于单个worker,如果多个worker间共享,可使用shared dict。Foreign Function Interface指 在A语言中调用B语言的机制,泛指其他语言调用C的函数。 代码仓库:https://github.com/openresty/lua-resty-lrucache仓库内含有两种版本实现,api是一致的。纯...
lua_package_path "/path/to/lua-resty-lrucache/lib/?.lua;;"; server { listen 8080; location = /t { content_by_lua_block { require("myapp").go() } } } } Description This library implements a simple LRU cache forOpenRestyand thengx_luamodule. ...
其他与 lua-resty-lrucache 有关的软件包 依赖 推荐 建议 enhances libluajit2-5.1-2 OpenResty-maintained branch of LuaJIT (shared objects) 下载lua-resty-lrucache 硬件架构软件包大小安装后大小文件 all10.7 kB42.0 kB[文件列表]
Lua-land LRU Cache based on LuaJIT FFI. Contribute to openresty/lua-resty-lrucache development by creating an account on GitHub.
003-init-by-lua.t 004-flush-all.t 005-capacity.t 006-count.t 007-get-keys.t 008-user-flags.t 101-mixed.t TestLRUCache.pm .gitattributes .gitignore .travis.yml Makefile README.markdown dist.ini valgrind.suppressBreadcrumbs lua-resty-lrucache / t/ Directory actions More options ...