services:
  cache_context.example:
    class: Drupal\foo\Cache\Context\ExampleCacheContext
    arguments: ['@request_stack']
    tags:
      - { name: cache.context}
