Last active
May 9, 2019 04:09
-
-
Save Ahmed-Ayman/ffcb246ef764136a317ffe810dfb757d to your computer and use it in GitHub Desktop.
setting up memcached in docker-compose to be used in drupal https://www.valuebound.com/resources/blog/configuring-memcache-drupal-8-to-reduce-database-load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
memcached: | |
container_name:memcached | |
image: memcached:1.5 | |
restart: "no" | |
ports: | |
- 11211 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$settings['cache']['default'] = 'cache.backend.memcache_storage'; | |
// Set’s Memcache key prefix for your site and useful in working sites with same memcache as backend. | |
$settings['memcache_storage']['key_prefix'] = ''; | |
// Set’s Memcache storage server’s. | |
$settings['memcache_storage']['memcached_servers'] = ['memcached:11211' => 'default']; | |
# to debug memcached. | |
$settings['memcache_storage']['debug'] = TRUE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment