miniredis
miniredis copied to clipboard
ZRANDMEMBER not supported
When testing something like
res, err := c.RedisClient.ZRandMember(ctx, c.GetFullKey(key), 1, false).Result()
err is ERR unknown command 'zrandmember', with args beginning with: ...
Using github.com/alicebob/miniredis/v2 v2.15.1
res, err := c.RedisClient.ZRandMember(ctx, c.GetFullKey(key), 1, false).Result()
Thanks for the issue, and good point, we missed that command. I'll see if I can add add it soonish, but PRs are also accepted :)
Added it in the PR linked above. Will review/merge it in a few days.
Awesome! I never managed to get time to contribute unfortunately