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

allow users to use a credis native setup #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scones
Copy link

@scones scones commented Jul 6, 2018

... instead of testing an unused variable

this change allows us to pass a credis_cluster object as $server and thus use a preconfigured sentinel setup.
and it is already tested in production

best regards.

... instead of testing an unused variable

this change allows us to pass a credis_cluster object as $server and thus use a preconfigured sentinel setup.
and it is already tested in production

best regards.
@danhunsaker
Copy link
Contributor

Seeing as the current code lets you do the same exact thing by passing the object as the third argument instead of the first... Without modifications... This change is a backwards compatibility break, and doesn't actually add anything that isn't already there, so it probably won't be merged.

@scones
Copy link
Author

scones commented Jul 8, 2018

The only place i can locate, where Resque::$redis is assigned, seems to be here:

self::$redis = new Resque_Redis(self::$redisServer, self::$redisDatabase);

(and maybe two lines above that).

You might notice the apparent lack of a third argument.

So yes, the current implementation of Resque_Redis does allow for a native setup, but the current implementation of Resque does not.

But i am always open for a configuration example with the current release that can use a sentinel setup.

@danhunsaker
Copy link
Contributor

danhunsaker commented Jul 8, 2018

Let me rephrase, then. If the issue is that nothing is actually passing the third argument to the Resque_Redis constructor, then the correct fix is to update the calling code to make use of this parameter, rather than negate its very existence by changing the one pair of lines that uses it.

danhunsaker added a commit to resque/php-resque that referenced this pull request Dec 11, 2018
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

Successfully merging this pull request may close these issues.

2 participants