Introduction
We need to set up a connection to Redis so our program can talk to the Redis database and store or get data.
When your app needs to save user sessions in Redis.
When you want to cache data to make your app faster.
When you need to share data between different parts of your app using Redis.
When you want to connect to a Redis server running on another computer.
When you want to use Redis commands from your program.