Skip to content

Instantly share code, notes, and snippets.

@Prosen-Ghosh
Created January 22, 2023 14:54
Show Gist options
  • Save Prosen-Ghosh/19bd3fba08b08d7bd38ace61b7d27d8e to your computer and use it in GitHub Desktop.
Save Prosen-Ghosh/19bd3fba08b08d7bd38ace61b7d27d8e to your computer and use it in GitHub Desktop.
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