
DDEV Memcached
Overview
Memcached is a free & open source, high-performance, distributed memory object caching system.
This add-on integrates Memcached into your DDEV project.
Installation
ddev add-on get ddev/ddev-memcached
ddev restart
After installation, make sure to commit the .ddev
directory to version control.
Usage
- 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 use nc
or telnet
to connect to the Memcached container on port 11211, i.e. nc memcached 11211
. You can then run commands such as stats
to see usage information. See cheatsheet for more commands.
Advanced Customization
To change the docker image:
ddev dotenv set .ddev/.env.memcached --memcached-docker-image=memcached:1.6
ddev add-on get ddev/ddev-memcached
ddev restart
Make sure to commit the .ddev/.env.memcached
file to version control.
Credits
Maintained by the DDEV team