Technically, at this point, we are already using Redis to store some of our application state. Express/Connect is using Redis as its session store, although if you came from an earlier chapter because you do not have Redis installed, we will cover how to do it in this chapter.
We will start with Mac OS X. We are going to use brew again as it makes installing software incredibly easy. In a terminal, type the following command:
brew install redis
You should then see something similar to the following screenshot:
At the time of writing, Redis 2.8.8 was the newest stable version and brew installed Version 2.8.5. This is close, and we will not worry about the difference.
Homebrew installs Redis to /usr/local/Cellar/redis/2.8.5
. Homebrew also puts this directory into our path. This will allow us to launch the server and command-line interface from our terminal. We should now launch the server to make sure that it works. In the terminal, type the following command...