Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / memcache / example.services.yml
1 # This file contains example services overrides.
2 #
3 # Enable with this line in settings.php
4 #   $settings['container_yamls'][] = 'modules/memcache/example.services.yml';
5 #
6 # Or copy & paste the desired services into sites/default/services.yml.
7 #
8 # Note that the memcache module must be enabled for this to work.
9
10 services:
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]
17
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']
23    tags:
24      - { name: cache_tags_invalidator }
25
26   # Replaces the default lock backend with a memcache implementation.
27   lock:
28     class: Drupal\Core\Lock\LockBackendInterface
29     factory: ['@memcache.lock.factory', get]