Closed tyler92 closed 5 months ago
Thanks for reporting this problem! I'll take a review on it ASAP.
Sorry for the late reply, too busy these days.
Regards
Thanks again for your contribution!
I moved the Cursor definition to sw/redis++/utils. So that C++ 11 build can also use it.
Regards
We faced the issue when the
SCAN
command returned too big value forlong long
type which led to the errorInvalid cursor reply: 9286422431637963776
. This happened with AWS ElastiCache (Redis). According to the documentation:Also, the same issue was fixed for Spring: https://github.com/spring-projects/spring-data-redis/issues/2796
I realize this change is quite big and probably a braking change, but I believe we need to fix it. So I replaced all
long long
cursors withCursor
alias which isunsigned long long
. Probably it's better to usestd::uint64_t
to be more precise.