Skip to content

Conversation

rhysbalevicius
Copy link

@rhysbalevicius rhysbalevicius commented Sep 16, 2022

Prior to Redis v7 various geo commands supported a case sensitive "unit" parameter (in Redis v7 and above it is case-insensitive). In particular, for clients running v6.2.7 and below the units m, km, ft, mi must be lowercase, or else an error is thrown: ERR unsupported unit provided. please use m, km, ft, mi.

While this is true for several geo-like commands it appears that in this library only the geodist command explicitly types this parameter. However, the units here are specified to be uppercase which is incompatible with older versions. Since v7+ is case insensitive, this PR proposes to use lowercase for the sake of compatibility.

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.

1 participant