作者:糖果


require "redis"
local redis = require 'redis'
local client = redis.connect('127.0.0.1', 6379)


local auth_flg = client:auth("这里是你的密码")
if not auth_flg then
        print("Auth NG!!!")
end

www.lua.ren