RediStack
RediStack copied to clipboard
fatalerror: zpopmin, zpopmax when zadd data that is not (Int, Double)
When zadd adds data that is not (Int, Double), it will cause errors in zpopmin and zpopmax:
failed: caught error: "RedisClientError(baseError: RediStack.RedisClientError.(unknown context at $10c54fe70).BaseError.assertionFailure(message: "Unexpected response: \'1E4FD2C5-C32E-4E3F-91B3-45478BCF0185\'"))"
Fixing this issue is simple: just change scoreIsFirst to false.
like this: