CONFIG
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
Early Releases: Not fully supported. YEDIS only supports the CONFIG command to set the required password(s) for client authentication. All other CONFIG requests would be accepted as valid command without further processing.
To enable authentication, one can set a password that would be required for connections to communicate with the redis server. This is done using the following command:CONFIG SET requirepass password[,password2]
Return Value
Returns a status string.
Examples
You can do this as shown below.
1. $ CONFIG SET requirepass "yugapass"
1. "OK"
1. $ AUTH "yugapass"
1. "OK"
1. $ AUTH "bad"
1. "ERR: Bad Password."
1. $ CONFIG SET requirepass "yugapassA,yugapassB"
1. "OK"
1. $ AUTH "yugapassA"
1. "OK"
1. $ AUTH "yugapassB"
1. "OK"
1. $ AUTH "yugapassC"
1. "ERR: Bad Password."
