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

lorefnon picture lorefnon  路  19Comments

siluri picture siluri  路  22Comments

peepo picture peepo  路  19Comments

brucejcw picture brucejcw  路  40Comments

BridgeAR picture BridgeAR  路  17Comments