This doesn't actually change the default database name since Redis uses integers to represent databases. By passing a string it really defaults to database 0, which is what I was trying to avoid. A couple of safer ways to test this class is to either mock the redis connection or specify a test database in a config file.
This doesn't actually change the default database name since Redis uses integers to represent databases. By passing a string it really defaults to database 0, which is what I was trying to avoid. A couple of safer ways to test this class is to either mock the redis connection or specify a test database in a config file.