Complete the code to connect to Redis on the default host and port.
redis_client = redis.Redis(host=[1])Redis usually runs on the local machine, so the host is "localhost".
Complete the code to connect to Redis on port 6380 instead of the default 6379.
redis_client = redis.Redis(port=[1])Port 6380 is the custom port we want to connect to instead of the default 6379.
Fix the error in the code by completing the password parameter to connect securely.
redis_client = redis.Redis(password=[1])The password must be a string matching the Redis server password, here "mypassword".
Fill both blanks to connect to Redis on host "redis-server" and port 7000.
redis_client = redis.Redis(host=[1], port=[2])
We specify the host as "redis-server" and the port as 7000 to connect correctly.
Fill all three blanks to connect to Redis with host "cache", port 6381, and password "secret".
redis_client = redis.Redis(host=[1], port=[2], password=[3])
We use the host "cache", port 6381, and password "secret" to connect securely.