git clone https://www.github.com/phpredis/phpredis.git
cd phpredis
phpize && ./configure && make && sudo make install
Tambahkan extension=redis.so
di php.ini Anda
brew services restart [email protected]
make test
Anda dapat memeriksa berfungsi atau tidak
php -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"