Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CraueConfigBundle, Redis and provider tagging #59

Open
SergeiTPG opened this issue Nov 28, 2022 · 0 comments
Open

CraueConfigBundle, Redis and provider tagging #59

SergeiTPG opened this issue Nov 28, 2022 · 0 comments

Comments

@SergeiTPG
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant