This repository allows you to quickly install Memcached into a DDEV project using ddev get ddev/ddev-memcached
.
For DDEV v1.23.5 or above run
ddev add-on get ddev/ddev-memcached && ddev restart
For earlier versions of DDEV run
ddev get ddev/ddev-memcached && ddev restart
This Memcached recipe for DDEV installs a .ddev/docker-compose.memcached.yaml
using the memcached
Docker image.
- The Memcached instance will listen on TCP port 11211 (the Memcached default).
- Configure your application to access Memcached on the host:port
memcached:11211
. - To reach the Memcached admin interface, run
ddev ssh
to connect to the web container, then usenc
ortelnet
to connect to the Memcached container on port 11211, i.e.nc memcached 11211
. You can then run commands such asstats
to see usage information. See cheatsheet for more commands.