redis-python db=0 parameter used for?

kun picture kun · Jun 24, 2014 · Viewed 7.8k times · Source

I have read the redis-python document and searched online, I can not find anything about the db parameter for Redis(). What is it use for?

Answer

Sergio Tulentsev picture Sergio Tulentsev · Jun 24, 2014

By default, redis has 16 databases, which can be addressed by their indexes. This is what it's for.

See SELECT command.