Redis – Connection Select Command

  • Post author:
  • Post category:Redis
  • Post comments:1 Comment

Redis SELECT command is used to select the DB having the specified zero-based numeric index. New connections always use DB 0.

Return Value

String reply.

Syntax

Following is the basic syntax of Redis SELECT command.

redis 127.0.0.1:6379> SELECT DB_INDEX

Example

redis 127.0.0.1:6379> SELECT 1 
OK 
redis 127.0.0.1:6379[1]> 

This Post Has One Comment

Leave a Reply