English 中文(简体)
Redis - Connections
  • 时间:2024-09-17

Redis - Connections


Previous Page Next Page  

Redis connection commands are basically used to manage cpent connections with Redis server.

Example

Following example explains how a cpent authenticates itself to Redis server and checks whether the server is running or not.

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

Redis Connection Commands

Following table psts some basic commands related to Redis connections.

Sr.No Command & Description
1 AUTH password

Authenticates to the server with the given password

2 ECHO message

Prints the given string

3 PING

Checks whether the server is running or not

4 QUIT

Closes the current connection

5 SELECT index

Changes the selected database for the current connection

Advertisements