You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
247 B
Lua

local redisc = require "resty.rediscluster"
local _M = {}
function _M.new(_, cnf)
local red, err = redisc:new(cnf)
if err then
ngx.log(ngx.INFO, "failed to create: ", err)
return nil
end
return red
end
return _M