node-redis
node-redis copied to clipboard
exists method always returns true
var REDIS = require('redis')
var DB = REDIS.createClient()
console.log(DB.exists('some_key_not_already_in_db')) //prints true
Is there some other way of checking for existence?
try DB.exists('some_key_not_already_in_db', console.log)
Missed out on the callback.
Thank you!