Redis configuration

Hello, i can’t find instructions about how to connect to a specific database for Redis.
Database 0 and 1 are already in use, so for this install i want to use number 2 (i’ve got 15 seperate redis databases available).

For now i set it up like this:

    socket: '/tmp/redis.sock'
    database: '2'

Is this good?