w3resource

Redis Connection: SELECT index

Description

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

Syntax:

SELECT DB_INDEX

Available since

1.0.0.

Return Value

String reply

Return Value Type

String

Example>

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

Previous: QUIT
Next: BGREWRITEAOF



Follow us on Facebook and Twitter for latest update.