Created
January 22, 2023 14:54
-
-
Save Prosen-Ghosh/19bd3fba08b08d7bd38ace61b7d27d8e 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
const Redis = require("ioredis"); | |
const redis = new Redis(); | |
app.get("/receive", async (req, res) => { | |
const message = await redis.lpop("messages"); | |
res.send(`Received message: ${message}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment