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

id0Sch picture id0Sch  路  4Comments

shmendo picture shmendo  路  6Comments

gpascale picture gpascale  路  4Comments

Stono picture Stono  路  6Comments

dotSlashLu picture dotSlashLu  路  5Comments