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
psetex method returns '+OK' on success, not true #942
Comments
@Sitri, nice catch! Could you create a pull request? |
@yatsukhnenko yes, I'm working now. |
@Sitri, yep, you can use |
@yatsukhnenko ok, thx. public function testPSetEx() {
$this->redis->del('key');
$this->assertTrue($this->redis->psetex('key', 7 * 1000, 'val') === TRUE);
$this->assertTrue($this->redis->ttl('key') ===7);
$this->assertTrue($this->redis->get('key') === 'val');
} or is this not enaugh? |
👍 |
I created #944, please review to this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In setter methods (ex. set(), setex()...) will returns true, but only psetex method will returns '+OK' string on success.
I think this is bug.
The bug may due to this line .
It should be "redis_boolean_response".
The text was updated successfully, but these errors were encountered: