The `hmget` command fails to retrieve a second argument if the first argument is nil
aeisenberg opened this issue · 1 comments
aeisenberg commented
I know this is not an active project, but I thought I'd report the error anyway.
The hmget
command fails to retrieve a second argument if the first argument is nil. For example:
redis = require('redis')
local client = redis.connect()
client:hset(1, 'exists', 'yay!')
local _, exists = client:hmget(1, 'notexists', 'exists')
print(exists) -- should print 'yay!', but doesn't
aeisenberg commented
User error. Please ignore.