Skip to content

CraueConfigBundle, Redis and provider tagging #59

@SergeiTPG

Description

@SergeiTPG

When provider is tagged to be cleared during cache:clear command, container is failing to be assembled.
It appears, that assembling process messes up with arguments:

"Symfony\Component\Cache\Traits\RedisTrait::init()" expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, "string" given.

With File cache adapter the same configuration works just fine.

    craue_config_cache_provider:
        class: Symfony\Component\Cache\Adapter\RedisAdapter
        public: false
        tags:
            - { name: 'cache.pool', clearer: 'cache.system_clearer' }
        arguments:
            - '@Redis'
            - 'craue_config'
            - 3600

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions