redis.auth: Authenticate redis connection

Description Usage Arguments Details Value Author(s)

View source: R/redis.R

Description

redis.auth attempts to authenticate a redis connection

Usage

1
redis.auth(rc, password)

Arguments

rc

Redis connection as returned by redis.connect

password

string, password to provide

Details

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.

Value

TRUE if successful, raises an error on failure

Author(s)

Simon Urbanek


s-u/rediscc documentation built on July 22, 2020, 2:18 a.m.