Description Usage Arguments Details Value Author(s)
redis.auth
attempts to authenticate a redis connection
1 | redis.auth(rc, password)
|
rc |
Redis connection as returned by |
password |
string, password to provide |
Issues a redis AUTH
command with the given password. Will
fail if redis was not configured with requirepass
configuration (since redis issues an error in that case).
Note that redis.connect(..., password)
is preferrable for
persistent authentication since it performs AUTH
before
selecting the database and remembers the password for implicit
re-connects - neither of which is possible with redis.auth
.
TRUE
if successful, raises an error on failure
Simon Urbanek
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.