1 # This file contains example services overrides.
3 # Enable with this line in settings.php
4 # $settings['container_yamls'][] = 'modules/memcache/example.services.yml';
6 # Or copy & paste the desired services into sites/default/services.yml.
8 # Note that the memcache module must be enabled for this to work.
11 # Timestamp invalidation service used for invalidation logic.
12 memcache.timestamp.invalidator.tag:
13 class: Drupal\memcache\Invalidator\MemcacheTimestampInvalidator
14 # Remember to use the same bin as the bootstrap container if you are using it!
15 # Adjust tolerance factor as appropriate when not running memcache on localhost.
16 arguments: ['@memcache.factory', 'memcache_tag_timestamps', 0.001]
18 # Cache tag checksum backend. Used by memcache and most other cache backends
19 # to deal with cache tag invalidations.
20 cache_tags.invalidator.checksum:
21 class: Drupal\memcache\Cache\TimestampCacheTagsChecksum
22 arguments: ['@memcache.timestamp.invalidator.tag']
24 - { name: cache_tags_invalidator }
26 # Replaces the default lock backend with a memcache implementation.
28 class: Drupal\Core\Lock\LockBackendInterface
29 factory: ['@memcache.lock.factory', get]