Redis - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Redis Connection

Redis Connection

shape Description

Redis connection commands are basically used to manage client connections with redis server. The goal of this is to give a basic understanding of what exactly Redis does and how it differs from other database, both relational and NoSQL and equip the user with the knowledge and need to able to start using Redis with a real application. But has to be feel comfortable enough with Redis, and explain how Redis work to decide if Redis would be a good choice for a data store for the application. If the client comes from a relational database background,the user probably find Redis to be very different from any database. Even if the client uses some NoSQL databases like Ravendb or Mongodb and probably still finds Redis to be quite unique and it is critical to understand what exactly how this Redis operations are performed and properly set the expectation moving forward. Redis is an open source database.

Redis connection commands

shape Description

Redis AUTH summon is utilized to validate a secret word ensured server with a given watchword. On the off chance that gave secret key matches the watchword in the design document, the server answers with the OK status code and begins tolerating orders. Something else, a mistake is returned and the customers needs to attempt another secret word.
S.NO Command Description
1 Echo message Print the given string
2 PING Check wheather server is running or not
3 AUTH password Authenticate to the server with given password
4 SELECT index Change the selected database for the current connection
5 QUIT Close the current connection

Example

shape Description

The below example describes the sample procedure of a connection. [c] redis 127.0.0.1:6379> AUTH "password" OK redis 127.0.0.1:6379> PING PONG [/c]

Summary

shape Key Points

  • Connections - Used to manage client connections with redis server.
  • Redis connection commands - This commands are utilized to validate a secret word.