lanch redis mac code example Example 1: install redis brew brew update brew install redis Example 2: redis cache start sudo /etc/init.d/redis_6379 start