9951 explained code solutions for 126 technologies


lua-redisRedis auth (user/password) usage


local redis = (require 'redis').connect('127.0.0.1', 6379)
redis:auth('user:pwd')ctrl + c
require 'redis'

load Redis module for Lua

connect

connect to Redis server

'127.0.0.1', 6379

Redis host and port to connect to

auth

authenticate on Redis server

user:pwd

username and password to auth on Redis server