# How to use hget command in node-red using node-red-contrib-redis node

**URL:** <https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687>\
**Category:** General\
**Created:** [19 September 2019 10:05 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687 "2019-09-19T10:05:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjaycoder-r](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sanjaycoder-r/32/12281_2.png) [@Sanjaycoder-r](https://discourse.nodered.org/u/Sanjaycoder-r)\
**Post date:** [19 September 2019 10:05 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687/1 "2019-09-19T10:05:27Z")

</div>

I am using the following command to get the data `hget '0000f8f005f16885' 'InBound'` from redis. In node-red node-red-contrib-redis node I'm using for fecthing data but it is returning null.

`[{"id":"654f64e3.7875dc","type":"redis-command","z":"d506abaf.40e9c8","server":"2c3180c2.abed8","command":"hgetall","name":"","topic":"","params":"[\"0000f8f005f16885\"]","paramsType":"json","payloadType":"json","block":false,"x":506,"y":348,"wires":[["e4fbb5b9.e78588"]]},{"id":"5d528de9.f1c094","type":"inject","z":"d506abaf.40e9c8","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":266,"y":348,"wires":[["654f64e3.7875dc"]]},{"id":"e4fbb5b9.e78588","type":"debug","z":"d506abaf.40e9c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":786,"y":348,"wires":[]},{"id":"2c3180c2.abed8","type":"redis-config","z":"","name":"192.168.8.216","options":"{}","cluster":false,"optionsType":"json"}]`

The above is the flow that I'm using.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [19 September 2019 10:12 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687/2 "2019-09-19T10:12:03Z")

</div>

Please don’t open multiple threads for what is basically the same problem. You can always edit or add to a thread

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [19 September 2019 10:15 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687/3 "2019-09-19T10:15:34Z")

</div>

Now added to [Node-red with Redis](https://discourse.nodered.org/t/node-red-with-redis/15685/4)

please continue any discussion there

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 September 2019 10:19 UTC](https://discourse.nodered.org/t/how-to-use-hget-command-in-node-red-using-node-red-contrib-redis-node/15687/4 "2019-09-19T10:19:50Z")

</div>


