From bd690ab71825b227b01d9fc3aa347dff146e1a5a Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Mon, 28 Feb 2022 11:27:34 +0000 Subject: [PATCH] Be more helpful for how to install / start Redis In response to [1]. [1]: https://github.com/alphagov/notifications-api/pull/3467#discussion_r815797015 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index da5e9e33f..479277228 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,15 @@ export PATH=${PATH}:/Applications/Postgres.app/Contents/Versions/11/bin/ ### Redis -To switch redis on you'll need to install it locally e.g. `brew install redis`. To use redis caching you need to switch it on with an environment variable: +To switch redis on you'll need to install it locally. On a Mac you can do: + +``` +# assuming you use Homebrew +brew install redis +brew services start redis +``` + +To use redis caching you need to switch it on with an environment variable: ``` export REDIS_ENABLED=1