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

update set to return redis response messages #6

Merged
merged 2 commits into from Jul 7, 2015

Conversation

dnmfarrell
Copy link
Contributor

updated set() to return the Redis response messages
Also added the option to use a callback when nowait is set
and validate args for set()

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.37%) to 87.91% when pulling 8bac14d on dnmfarrell:master into 6a896e7 on Songmu:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.37%) to 87.91% when pulling 8bac14d on dnmfarrell:master into 6a896e7 on Songmu:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.37%) to 87.91% when pulling 8bac14d on dnmfarrell:master into 6a896e7 on Songmu:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.37%) to 87.91% when pulling 8bac14d on dnmfarrell:master into 6a896e7 on Songmu:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.37%) to 87.91% when pulling 8bac14d on dnmfarrell:master into 6a896e7 on Songmu:master.

$self->{redis}->wait_all_responses unless $self->{nowait};
die 'set() requires key and value arguments' unless $key && $value;

if ($self->{nowait} && (!$callback || ($callback && ref $callback ne 'CODE')))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too strict behaviour and potentialy breaks existing application.
Even if nowait with no callbacks, set value is stored later, so callback is not
always required.

Cache::Redis is cache module, so in some case developers can accord delay of cache reflection.

@Songmu
Copy link
Owner

Songmu commented May 28, 2015

Thank you. I add one comment.

Songmu added a commit that referenced this pull request Jul 7, 2015
update set to return redis response messages
@Songmu Songmu merged commit 74e7169 into Songmu:master Jul 7, 2015
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.

None yet

3 participants