Be more helpful for how to install / start Redis

In response to [1].

[1]: https://github.com/alphagov/notifications-api/pull/3467#discussion_r815797015
This commit is contained in:
Ben Thorner
2022-02-28 11:27:34 +00:00
parent 038d47e702
commit bd690ab718

View File

@@ -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