Example ping.lua
local riak = require "resty.riak" local client = riak.new() local ok, err = client:connect("127.0.0.1", 8087) if not ok then ngx.log(ngx.ERR, "connect failed: " .. err) end local rc, err = client:ping() ngx.say(rc) ngx.say(err) client:close()