April 16, 2023
Prerequisite: Have brew
installed on your macbook.
brew install redis
brew services start redis
It will start redis and restart it on login.
brew services info redis
If the redis is running you'll get an output like below:
redis (homebrew.mxcl.redis)
Running: ✔
Loaded: ✔
User: johnWick
PID: 69875
redis-cli
brew services stop redis
brew services restart redis
redis-cli flushall
Reference: Redis official Docs
Hope it was helpful. Thank you.