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

lazyload connect to redis? #91

Open
bashilbers opened this issue Feb 14, 2018 · 0 comments
Open

lazyload connect to redis? #91

bashilbers opened this issue Feb 14, 2018 · 0 comments

Comments

@bashilbers
Copy link

Not really an issue, just a question:

Concerning this line: https://github.com/dflydev/dflydev-doctrine-orm-service-provider/blob/master/src/Dflydev/Provider/DoctrineOrm/DoctrineOrmServiceProvider.php#L304

I want to generate proxies using a container that has no link to a Redis container. In my config I have configured a redis cache with host and port which results in the orm.cache.factory.redis to automatically try and call ->connect() and ->auth() on the Redis instance.

Is there a way to only call connect() and auth() when needed?

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