By default, Redis stores all keys in the database number 0, but in some cases we need to work with other database numbers. With this modification we can parse de database number from the URL path, as we can do with other Redis packages. For example: redis://user:password@hostname:port/databaseNumber.
By default, Redis stores all keys in the database number 0, but in some cases we need to work with other database numbers. With this modification we can parse de database number from the URL path, as we can do with other Redis packages. For example: redis://user:password@hostname:port/databaseNumber.