Skip to content

Instantly share code, notes, and snippets.

@Ahmed-Ayman
Last active May 9, 2019 04:09
Show Gist options
  • Save Ahmed-Ayman/ffcb246ef764136a317ffe810dfb757d to your computer and use it in GitHub Desktop.
Save Ahmed-Ayman/ffcb246ef764136a317ffe810dfb757d to your computer and use it in GitHub Desktop.
memcached:
container_name:memcached
image: memcached:1.5
restart: "no"
ports:
- 11211
$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