Brew redis on Mac Redis is a robust in-memory datastore widely used as cache, pub/sub (message broker) for further reading. Installing Redis on mac There are many options to install Redis on mac you can Download the code and compile it or use a docker image. Brew services start redis. Now execute the following command to have Redis continually run in the background: 1. Redis-server / usr / local / etc / redis.conf.
Using Homebrew
will save you lot of times in setting up and configuring the development environment on macOS.
If you don’t have it in your Mac, try installing using the guideline here.
Optional:
If you don’t update your packages for a long time. Update them using:
Those 2 commands may take time. Please take your coffee (or run them later when you have time).
Install Redis
Brew Run Redis
Start Redis
Run Redis as a background service
And stop it
If you don’t want/need a background service you can just run:
You can configure for Redis
by editing the configuration file in
And start Redis with the configuration file as:
Interact with Redis
When Redis is running, you can interact with it via redis-cli
.
Test if Redis is running
It will reply PONG
.
Brew Redis Start Time
All commands to use with redis-cli
can be found here.
Command I usually use when debugging: Clear all data
Brew Redis Start Download
Uninstall Redis
Brew Redis Starter
Remember to remove the plist file also.