redis.auth {rediscc}R Documentation

Authenticate redis connection

Description

redis.auth attempts to authenticate a redis connection

Usage

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


[Package rediscc version 0.1-4 Index]