Redis Auth command
Redis Auth command is used to detect a given password and profile password matches.
grammar
redis Auth basic command syntax is as follows:
redis 127.0.0.1:6379> AUTH PASSWORD
Available versions
> = 1.0.0
return value
PASSWORD Back OK match, otherwise it returns an error.
Examples
redis 127.0.0.1:6379> AUTH PASSWORD (error) ERR Client sent AUTH, but no password is set redis 127.0.0.1:6379> CONFIG SET requirepass "mypass" OK redis 127.0.0.1:6379> AUTH mypass Ok