Memcached is an in-memory caching system that speeds up applications by caching database queries and API calls.
Install
apt install memcached libmemcached-tools -yConfigure
Edit /etc/memcached.conf:
-m 128 # Memory in MB\n-p 11211 # Port\n-l 127.0.0.1 # Listen address\n-c 1024 # Max connectionssystemctl restart memcachedPHP Integration
apt install php-memcached -y\nsystemctl restart php8.3-fpmMonitor
memcstat --servers=localhost