Posted on Aug 18, 2020
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Start the service
$ brew update $ brew install redis
Ping in order to see if it is running properly
$ brew services start redis
Another option is to enter to the prompt and run commands from there
$ redis-cli ping PONG
To stop the service run:
$ redis-cli 127.0.0.1:6379> ping PONG
Redis configuration file:
$ brew services stop redis
Uninstall Redis and all related files.
$ brew uninstall redis $ rm ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Now you can play with more commands such as Delete all keys by a prefix in Redis cluster
Guide based on this document