Skip to content

multi & exec hmget failed #56

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

Open
eranhazout opened this issue Oct 13, 2014 · 5 comments
Open

multi & exec hmget failed #56

eranhazout opened this issue Oct 13, 2014 · 5 comments

Comments

@eranhazout
Copy link

Hi again.
When using multi & exec with hmget function, every third request receive a correct response.
Checked without multi and it works...
Any idea?

$this->redis->multi();
$this->redis->hmget('member.123',array('profile'));
$this->redis->hmget('member.234',array('profile'));
$this->redis->hmget('member.345',array('profile'));
$this->redis->hmget('member.456',array('profile'));
var_dump($this->redis->exec());

array(970) {
[0]=>
string(1) "$"
[1]=>
bool(false)
[2]=>
string(189) "GOOD RESPONSE"
[3]=>
string(1) "$"
}

Thanks!

@danhunsaker
Copy link
Contributor

This may be related to #53 and #57...

@joelcox
Copy link
Owner

joelcox commented Oct 23, 2014

Hi Eran, I'm sorry you're having trouble with the library. The multi command was added after the library was released and I've never actually tested its functionality (or the lack thereof..) using this library. I'll hopefully get around to fixing this over the weekend, but I can't make any promises.

@eranhazout
Copy link
Author

No problem Joel. Thank you!

@joelcox
Copy link
Owner

joelcox commented Oct 25, 2014

Well, I did some research today and had a first stab at supporting multi array responses, but the infamous issues @danhunsaker linked to keep me from implementing a workable solution..

1ab6c5f#diff-7f450e802fd9c037f134eafcd5ad6119R284

@eranhazout
Copy link
Author

I also tried to fix it but didn't succeed to get multi array responses..
finally I wrote an autoloader for codeigniter and predis which is work well.
Thank you for your effort.

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

3 participants