Closed magnetik closed 5 years ago
why not
Yeah this is indeed a good idea. I've pushed a fixed version.
And #87 is somewhat linked to this as the score is always returned as string in redis.
And what about a unit test?
Is it possible to add a test for this behavior? Checking that values 1, 1.1 and "1.1" are ok, but not "this is not a number"?
I've added test
not sure about the version number we should use for this release
@omansour could be considered as bugfix IMHO (and bundled with #87). No new feature, no feature change… previous version has a very tricky/weird behavior with not numeric values, now we throw an exception to prevent this bad usage.
Many thanks 👌
From redis documentation
Not sure if this is a BC break since the library used to allow anything an automatically cast it.