How To Install memcache module for php 7.x in CentOS 8

From DevOps Notebook

Enable PowerTools and install dependencies in CentOS 8

# dnf --enablerepo=PowerTools -y install php-pear php-devel zlib-devel libmemcached-devel make

Install memcache module with pecl for php 7.x and add module in php.ini

# pecl install memcache
# echo 'extension=memcached.so' >> /etc/php.ini