git clone https://www.github.com/phpredis/phpredis.git
cd phpredis
phpize && ./configure && make && sudo make install
Aggiungi extension=redis.so nel tuo php.ini
brew services restart example@sqldat.com
make test
Puoi controllare il funzionamento o meno
php -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"