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

MGET, MSET and MSETNX commands #82

Merged
merged 2 commits into from
Feb 21, 2017
Merged

MGET, MSET and MSETNX commands #82

merged 2 commits into from
Feb 21, 2017

Conversation

KarelCemus
Copy link
Owner

Fixes #80, fixes #81

Implements #80 using #81 - just refactored, fixed several issues plus added SETNX and updated readme

@pcejrowski Thanks for your PR. Great job! I admire you understood my code. Well done! Could you look at this? I used your PR and just refactored it plus made several improvements. The major change comparing to your PR is that I renamed the methods in CacheAPI and changed their signature. It seems to me that this fits better the CacheAPI intention. CacheAPI should be independent on commands thus I don't like MGET and MSET names and I like varargs signature and want to be consistent with the rest of the API. But if it turns out that the using the Map is a frequent scenario, I will overload the method.

- renamed public mGet and mSet to better fit cache purposes
- fixed code style
- implemented MSETNX
- updated readme
@pcejrowski
Copy link
Contributor

Thanks for quick response. I fully see your points.

Overloading with Map() might be necessary for the future, but you'll see.

@KarelCemus KarelCemus merged commit 4cff25a into master Feb 21, 2017
@KarelCemus KarelCemus deleted the mget branch February 21, 2017 11:23
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.

Support for Redis MGET and MSET
2 participants