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!
Most helpful comment
try
DB.exists('some_key_not_already_in_db', console.log)