services:
    bookboon.cache:
        public: true
        class: Symfony\Component\Cache\Simple\RedisCache
        arguments:
          - '@default_redis_provider'
          - 'api'
          - 1800

    Bookboon\Api\Bookboon:
        public: true
        factory: ['Bookboon\ApiBundle\Service\ApiFactory', create]
        arguments:
          - '@Bookboon\ApiBundle\Helper\ConfigurationHolder'
          - '@bookboon.cache'
          - '@monolog.logger.api'
        tags:
          - { name: monolog.logger, channel: api }

services:
    bookboon.cache:
        public: true
        class: Symfony\Component\Cache\Simple\RedisCache
        arguments:
          - '@default_redis_provider'
          - 'api'
          - 1800

    Bookboon\Api\Bookboon:
        public: true
        lazy: true
        factory: ['Bookboon\ApiBundle\Service\ApiFactory', create]
        arguments:
          - '@Bookboon\ApiBundle\Helper\ConfigurationHolder'
          - '@bookboon.cache'
          - '@monolog.logger.api'
        tags:
          - { name: monolog.logger, channel: api }

Mark service as lazy to avoid requesting token at cache:clear time
Mark service as lazy to avoid requesting token at cache:clear time
