in scripts/lua/lib/redis.lua [327:336]
function _M.getAPI(red, id)
local api, err = hget(red, "apis", id)
if not api then
request.err(500, utils.concatStrings({"Failed to retrieve the API: ", err}))
end
if api == ngx.null then
return nil
end
return cjson.decode(api)
end