🔥 AdonisJS From Scracth Early Access is Now Open!

Installing Redis

The next component we need to install is Redis. Redis is an in-memory data store that uses key-value structures to store data. Redis is often used as a caching or queue layer.

In our AdonisJS application, we will use Redis to store jobs in a queue before they are picked up and processed in the background.

Using DBngin (Mac or Windows)

If you are on Mac or Windows, you can install Redis through DBngin. If you've already installed DBngin from the installing MySQL lesson, simply create a new Redis service:

  • Choose the version of Redis you want to install
  • Give the service a name
  • Check the option to automatically start it upon login
  • Click Create and start the service

After completing these steps, you should have Redis installed on your computer.

Alternative installation (Linux or other methods)

Alternatively, or if you are on Linux, you can install Redis using the installation guide from the Redis website. Head over to the installation guide, select the installation guide for your operating system, and follow the provided steps.

Whichever method you choose, you should now have Redis installed on your computer.