You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
版本:
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'
The text was updated successfully, but these errors were encountered: