Skip to content

Sentinel commands support - #285

Closed
reva2 wants to merge 1 commit into
phpredis:masterfrom
reva2:master
Closed

Sentinel commands support#285
reva2 wants to merge 1 commit into
phpredis:masterfrom
reva2:master

Conversation

@reva2

@reva2 reva2 commented Jan 4, 2013

Copy link
Copy Markdown

I've add support for Sentinel's commands: SENTINEL masters, SENTINEL slaves , SENTINEL get-master-addr-by-name , SENTINEL reset .

I'm not C/C++ programmer. So, please check my code. Especially function 'redis_sock_read_multi_multibulk_reply_assoc' in file 'library.c'.

Documentation is also updated.

@nicolasff

Copy link
Copy Markdown
Member

Sergey,

Thanks a lot for this contribution! I am currently traveling but will
review as soon as I get back.

@michael-grunder

Copy link
Copy Markdown
Member

Hey there,

Thanks for the pull request. I'll take a look at it as well :)

Cheers,
Mike

@kyleterry

Copy link
Copy Markdown

Has any further work been done on this? I'd really like to use this library with sentinel because predis is too slow.

If these commands are implemented I will write an adapter for PSredis.

@mn7z

mn7z commented Dec 1, 2014

Copy link
Copy Markdown

+1

@michael-grunder

Copy link
Copy Markdown
Member

I haven't specifically implemented the SENTINEL commands yet, but in our develop branch there is the command command. Essentially it takes an arbitrary number of arguments.

So for example:

$obj_r->command('sentinel', 'remove', 'foo');

Would work

@euskadi31

Copy link
Copy Markdown
Contributor

👍

2 similar comments
@tslater

tslater commented May 28, 2015

Copy link
Copy Markdown

+1

@shumkov

shumkov commented Oct 2, 2015

Copy link
Copy Markdown

👍

@reva2 reva2 closed this Oct 2, 2016
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.

9 participants