Difficulty: Beginner
How many databases does Redis have by default and how do you switch?
16 (indexed 0-15). Use `SELECT <index>` to switch. Note: Namespacing with prefixes is usually preferred over multiple DBs.
Isolation, DB Indices
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.