Why does Redis use integer database numbers?

Viewed 11129

Why does Redis use integer database numbers instead of strings? It seems like it would be trivial to keep a small internal data structure which maps strings to the “actual” integer.

2 Answers
Related