SELECT

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

SELECT

Select a DB. DB numbers start from 0, and the number of DBs is set with databases in redis.conf.
A Cluster node can use only DB 0.

Example

Command>SELECT 1
Result>6001[1]>

CD (Change Database)

On an Enterprise server, use cd (change database) instead of select.
Select is used as SQL SELECT.


Syntax

SELECT

  • Available since version 1.0.0.
  • Time complexity is O(1).

<< QUIT SELECT CD >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.