Node-redis: exists method always returns true

Created on 5 Jul 2012  路  2Comments  路  Source: NodeRedis/node-redis

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?

question

Most helpful comment

try DB.exists('some_key_not_already_in_db', console.log)

All 2 comments

try DB.exists('some_key_not_already_in_db', console.log)

Missed out on the callback.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuany picture yuany  路  4Comments

juriansluiman picture juriansluiman  路  3Comments

adamgajzlerowicz picture adamgajzlerowicz  路  4Comments

ghost picture ghost  路  3Comments

michaelwittig picture michaelwittig  路  3Comments