Easy Tutorial
❮ Keys Scan Hashes Hset ❯

Redis Connection

Redis connection commands are primarily used to connect to a Redis server.

Example

The following example demonstrates how a client can connect to a Redis server by authenticating with a password and check if the server is running:

redis 127.0.0.1:6379> AUTH "password"
OK
redis 127.0.0.1:6379> PING
PONG

Redis Connection Commands

The table below lists the basic Redis connection commands:

No. Command and Description
1 AUTH password <br>Authenticate to the server
2 ECHO message <br>Echo the given string
3 PING <br>Ping the server
4 QUIT <br>Close the connection
5 SELECT index <br>Change the selected database for the current connection
❮ Keys Scan Hashes Hset ❯