Redis Stream with Node XADD

37
May 15, 2019, at 7:20 PM

How can one use Redis stream in redis-node.

Redis documentation for XADD is:

XADD mystream * key1 "Value1" key2 "Value2"

This will add a single entry with the given key value pairs. * specifies that the id should be automatically generated.

I tried to execute it in Node:

redisClient.xadd("myStream", "*", "name", "anant");

but I just got an error saying XADD is not defined.

READ ALSO
How resolve Operations and Map with GraphQL-js?

How resolve Operations and Map with GraphQL-js?

basically im trying upload a file with GraphQl js vanilla, but i dont know how resolve operations and map

33
puppeteer issue on CentOs 7 problem after exactly 30 minutes

puppeteer issue on CentOs 7 problem after exactly 30 minutes

i have a script that use node js and puppeteer, the script run wonderful on my windows 10 for as long as i dont close it from command line, when i`m using it

25