cd
CD
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
CD (Change Database)
Select a DB. DB numbers start from 0, and the number of DBs is set with databases in redis.conf.
Cluster nodes can use only DB 0.
Example
| Command> | CD 1 |
| Result> | 6001[1]> |
CD no-index
If you do not enter a DB number, DB 0 is selected by default.
Example
| Command> | CD |
| Result> | 6001> |
| This command is available on Enterprise Server. |
Syntax
CD [index]
- Available since Enterprise version 6.1.1.
- Time complexity is O(1).
| << SELECT | CD | SWAPDB >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
