I have a mdoule, where i create a db connection and a function which runs a query. I want to use the output of this query in another module. How do I do this?
The query is supposed to return the value from the key-value pair (hello:world). However, everytime I try to use the variable in another module, I end up with "true" instead of "world".
my code is here https://github.com/rishavs/RedisDbConnect
I want to call the getValue function from app.js and maybe console.log(db.getValue()) the output.