brew install php70
git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make && make install
vi /usr/local/etc/php/7.0/php.ini
Add extension=memcache.so
under the extensions section.
For those getting make: *** No targets specified and no makefile found. Stop. Check that zlib was present when running ./configure. If not then the second answer here works: https://stackoverflow.com/questions/29726890/pecl-install-memcache-fails-on-os-x-yosemite-with-memcache-support-requires-zli
Follow the instructions for installing zlib and run ./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11 making sure you have the same version of zlib.