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

How to configure a spéecifiqueredis / predis client connexion in the GenerateSchema ? #86

Closed
azurams opened this issue Sep 12, 2024 · 4 comments

Comments

@azurams
Copy link

azurams commented Sep 12, 2024

In Talleu\RedisOm\Command\GenerateSchema::generateSchema() RedisObjectManager is instanciated with default PredisClient / Redisclient .

How can we configure a specific host / port / database ?

@clementtalleu
Copy link
Owner

clementtalleu commented Sep 12, 2024

Dis you try to add theses env var ?

REDIS_CLIENT=phpredis REDIS_HOST=<your host>
Normally it will be used in the Predis/redis client

I think host/port and database must be set directly as environment variables.
I'll take care of it quickly

@azurams
Copy link
Author

azurams commented Sep 13, 2024

no i did't, i'll give it a try,
But i wonder if redis / predis connection could be injected in RedisObjectMapper with DI / psr11 Container Interface anywhere it could be needed ?

@clementtalleu
Copy link
Owner

You can add some env var now to use specific host/port

#87

@clementtalleu
Copy link
Owner

should update to 0.2.6

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

2 participants