Based on https://github.com/10up/wp-local-docker-v2/compare/master...Viper007Bond:add/memcached-to-wordpress
- Install plugin
wp install memcached-is-your-friend
- Add the following to wp-config.php (make sure WP_CACHE_KEY_SALT is defined and set with a random value)
$memcached_servers = array( 'default' => array( 'memcached:11211' ) )
wp cache add foo bar
wp cache get foo
--> should returnbar