openresty / openresty/lua-resty-core
loop or previous error loading module 'lrucache'
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 853
- Forks
- 286
- Avg merge
- 35m
- Merged PRs (30d)
- 1
Description
版本:
lua-resty-lrucache-0.08
nginx1.9.4
ngx_lua_module-0.9.2
配置:
lua_package_path "/xxx/lua-resty-lrucache-0.08/lib/?.lua;;";
location / {
access_by_lua_file /xxx/http_access.lua;
}
http_access.lua:
local worker_lrucache = require "resty.lrucache"
local c_lrucache, err = worker_lrucache.new(100000) -- allow up to 100000 items in the cache
if not c_lrucache then
return error("failed to create the cache: " .. (err or "unknown"))
end
c_lrucache:get("dog")
c_lrucache:set("dog", { age = 10 }, 0.1)
报错: loop or previous error loading module 'lrucache'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with lua-resty-lrucache-0.08, nginx 1.9.4, ngx_lua_module-0.9.2, and the shown lua_package_path. Start with the require "resty.lrucache" line in http_access.lua and the reported module-loading error. Done means identifying why the module load loops or reuses a previous error and recording the confirmed cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100