发布于 

LUA通过授权方式登录Redis

作者:糖果

1
2
3
4
5
6
7
8
9
10
11
12

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


本站由 @anonymity 使用 Stellar 主题创建。