Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

Conversation

@isutare412
Copy link

I installed cpp_redis and was doing some tests. I used zadd to make rankings of mine.
I have some data that has same score.
But in zadd of cpp_redis, it takes std::map<score, member> as an argument.
It seemed impossible to zadd data with same score in single command as the key of std::map is score.
Of course I can query several zadd commands for each data, but I think it would be more convenient and effiecient to query zadd many data in single command.
Therefore, I thought taking parameter as std::multimap would be better than taking them as std::map.

@isutare412
Copy link
Author

Actually, this pull request will not be compatible with former version as it removed std::map param-taking zadd function.
So, overloading zadd function with std::map version and std::multimap version should do...

@Cylix
Copy link
Owner

Cylix commented Sep 13, 2017

Hi,

Thanks a lot for your PR, it sounds good!

A new version will be released soon and will be a major one with breaking changes.
As I'd rather have only the multimap version, I'll just include this change in the next release as part of the breaking changes, so don't worry about the compatibility issue.

Best :)

Cylix added a commit that referenced this pull request Sep 20, 2017
@Cylix
Copy link
Owner

Cylix commented Sep 20, 2017

Fixed in #108 (should be merged soon and released under 4.0.0).
Thanks for reporting the issue and submitting this code change!

Best :)

@Cylix Cylix closed this Sep 20, 2017
Cylix added a commit that referenced this pull request Sep 20, 2017
* Added sentiel and high availability(HA) versions of client and subscriber which will handle connect/reconnection automatically to redis server.

* Merged changes

* clang format

* bump tacopie

* unix compilation. will need some time to code review and port windows changes to unix.

* clean unecessary changes. merge future_client into redis_client to make interface cleaner. rename redis_ prefix to classes

* merge ha_client into client, refactore architecture.

* merge ha_subscriber into subscriber

* try_commit instead of commit in disconnection flow

* doxygen

* tacopie link & documentation & compilation fix

* fix reconnection process

* fix unit tests

* clean code sentinel & make it consistent (avoid regression for example with callbacks execution)

* ability to change number of io service workers at runtime

* ha redis client example

* doxygen doc

* switch ZADD score param from map to multimap #107

* update CHANGELOG.md for 4.0.0 release

* bump tacopie
Cylix added a commit that referenced this pull request Sep 21, 2017
* High availability, sentinel, design improvement (#101)

* Added sentiel and high availability(HA) versions of client and subscriber which will handle connect/reconnection automatically to redis server.

* Merged changes

* clang format

* bump tacopie

* unix compilation. will need some time to code review and port windows changes to unix.

* clean unecessary changes. merge future_client into redis_client to make interface cleaner. rename redis_ prefix to classes

* merge ha_client into client, refactore architecture.

* merge ha_subscriber into subscriber

* try_commit instead of commit in disconnection flow

* doxygen

* tacopie link & documentation & compilation fix

* fix reconnection process

* fix unit tests

* clean code sentinel & make it consistent (avoid regression for example with callbacks execution)

* ability to change number of io service workers at runtime

* ha redis client example

* doxygen doc

* switch ZADD score param from map to multimap #107

* update CHANGELOG.md for 4.0.0 release

* bump tacopie

* [4.0.0] update README
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants