Skip to content
/ ddev-memcached Public template
generated from ddev/ddev-drupal-solr

Install Memcached as an extra service in DDEV

License

Notifications You must be signed in to change notification settings

ddev/ddev-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tests project is maintained

What is this?

This repository allows you to quickly install Memcached into a DDEV project using ddev get ddev/ddev-memcached.

Installation

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

Explanation

This Memcached recipe for DDEV installs a .ddev/docker-compose.memcached.yaml using the memcached Docker image.

Interacting with Memcached

  • 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.