-
-
Save stockholmux/5319c6cdd19775a8a58846c374e1f55b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.multi([ | |
['SETBIT', 'user123', 123, 1], | |
['BITOP', 'AND','123:sawboth','user123','article1:today', 'article3:today'], | |
['GETBIT', '123:sawboth', 123] | |
]).exec((err, result) => { | |
let sawboth = result[2]; | |
console.log('123 saw both articles: ', !!sawboth); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment