Search code examples
redisredis-py

redis-python db=0 parameter used for?


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?


Solution

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

    See SELECT command.