On this page:
redis-auth!
redis-echo
redis-ping
redis-quit!
redis-select-db!
redis-swap-dbs!

6 Connection Commands

procedure

(redis-auth! password)  boolean?

  password : redis-string/c
(redis-auth! username password)  boolean?
  username : redis-string/c
  password : redis-string/c
AUTHs the current connection using password. Raises an exception if authentication is not set up or if the password is invalid.

The second variant may be used with Redis version 6.0 and later to emit AUTH username password commands.
Commands used by this function: AUTH

procedure

(redis-echo client message)  string?

  client : redis?
  message : string?
Returns message.
Commands used by this function: ECHO

procedure

(redis-ping client)  string?

  client : redis?
Pings the server and returns "PONG".
Commands used by this function: PING

procedure

(redis-quit! client)  void?

  client : redis?
Gracefully disconnects from the server.
Commands used by this function: QUIT

procedure

(redis-select-db! client db)  boolean?

  client : redis?
  db : (integer-in 0 16)
Selects the current database.
Commands used by this function: SELECT

procedure

(redis-swap-dbs! client a b)  boolean?

  client : redis?
  a : (integer-in 0 16)
  b : (integer-in 0 16)
Swaps the given databases.
Commands used by this function: SWAPDB