# Multiple Databases

> How many logical databases does a Redis server have by default, how do you switch between them, and should you use them to separate data?

Canonical: https://www.internhack.in/learn/interview/redis-caching/redis-databases-count
Last updated: 2026-11-28

Difficulty: Beginner

## Question

How many logical databases does a Redis server have by default, how do you switch between them, and should you use them to separate data?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Logical databases, SELECT, databases config, Key prefixes, Redis Cluster DB 0

Previous: [Wiping Data](https://www.internhack.in/learn/interview/redis-caching/redis-flush-commands) · Next: [Atomic SET if not exists](https://www.internhack.in/learn/interview/redis-caching/redis-atomic-set-nx) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [ZSET Range Query](https://www.internhack.in/learn/interview/redis-caching/redis-zset-range-by-score)
- [Script Caching](https://www.internhack.in/learn/interview/redis-caching/redis-lua-script-cache)
- [Pausing Clients](https://www.internhack.in/learn/interview/redis-caching/redis-client-pause)
- [Memory Fragmentation](https://www.internhack.in/learn/interview/redis-caching/redis-memory-fragmentation)
- [Client-Side Caching (Redis 6+)](https://www.internhack.in/learn/interview/redis-caching/redis-client-caching-tracking)
- [ACLs (Access Control Lists)](https://www.internhack.in/learn/interview/redis-caching/redis-acl-manager)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)
