diff --git a/lib/resty/lrucache.lua b/lib/resty/lrucache.lua index ef7c384..377a7b4 100644 --- a/lib/resty/lrucache.lua +++ b/lib/resty/lrucache.lua @@ -174,7 +174,7 @@ function _M.get(self, key) -- print("expired: ", node.expire, " > ", ngx_now()) return nil, val end - return val + return val, node.expire - ngx.now() end