Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hmget unexisting fields in lua not falsy #1197

Open
artur-ma opened this issue Aug 8, 2022 · 0 comments
Open

hmget unexisting fields in lua not falsy #1197

artur-ma opened this issue Aug 8, 2022 · 0 comments

Comments

@artur-ma
Copy link

artur-ma commented Aug 8, 2022

Lua

Fetching unexising key should be falsy

local data = redis.call('hmget', 'someKey', 'someField')

if data[1] then
 return 'yes'
else
    return 'no'
end

ioredis will return "no"
ioredis-mock will return "yes"

@artur-ma artur-ma changed the title hmget unexisting fields in lua hmget unexisting fields in lua not falsy Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants