You are here

supercache.services.yml in Supercache 8

Same filename and directory in other branches
  1. 2.0.x supercache.services.yml

File

supercache.services.yml
View source
  1. services:
  2. # This is just a reimplementation of Drupal\Core\Cache\ChainedFastBackendFactory
  3. cache.backend.superchainedfast:
  4. class: Drupal\supercache\Cache\ChainedFastBackendFactory
  5. arguments: ['@settings']
  6. tags:
  7. - { name: event_subscriber }
  8. calls:
  9. - [setContainer, ['@service_container']]
  10. # Database backed raw backend
  11. cache.rawbackend.database:
  12. class: Drupal\supercache\Cache\DatabaseRawBackendFactory
  13. arguments: ['@database']
  14. # Apc based raw backend.
  15. cache.rawbackend.apcu:
  16. class: Drupal\supercache\Cache\ApcuRawBackendFactory
  17. arguments: ['@app.root', '@site.path']
  18. # Checksum invalidator that is built on top the raw caching layer.
  19. cache_tags.invalidator.checksum.supercache:
  20. class: Drupal\supercache\Cache\CacheCacheTagsChecksum
  21. arguments: ['@cache.rawbackend.chainedfast']
  22. tags:
  23. - { name: cache_tags_invalidator}
  24. # Chained fast backend built on top of the RawCacheBackendInterface
  25. # used to support chained fast storage for the CacheCacheTagsChecksum
  26. # cache tag invalidator.
  27. cache.rawbackend.chainedfast:
  28. class: Drupal\supercache\Cache\ChainedFastRawBackendFactory
  29. arguments: ['@settings']
  30. tags:
  31. - { name: event_subscriber }
  32. calls:
  33. - [setContainer, ['@service_container']]
  34. # This is storage over apc/wincache, couchbase/memcache and then the database.
  35. keyvalue.supercache:
  36. class: Drupal\supercache\KeyValueStore\KeyValueChainedFactory
  37. arguments: ['@cache.backend.superchainedfast', '@serialization.phpserialize', '@database']
  38. keyvalue.expirable.supercache:
  39. class: Drupal\supercache\KeyValueStore\KeyValueChainedExpirableFactory
  40. arguments: ['@cache.backend.superchainedfast', '@serialization.phpserialize', '@database']
  41. cache.supercache_keyvalue:
  42. class: Drupal\Core\Cache\CacheBackendInterface
  43. tags:
  44. - { name: cache.bin }
  45. factory: cache_factory:get
  46. arguments: [static]