Skip to content

Instantly share code, notes, and snippets.

@marcoshenrique-dev

marcoshenrique-dev/index.js Secret

Created Sep 19, 2020
Embed
What would you like to do?
const express = require('express');
const app = express();
const redis = require('ioredis');
const client = new redis();
app.post(('/') , async (req,res) => {
const result = await client.set('teste', 'Valor');
res.send(result);
console.log(result);
} );
app.listen(3000 , () => {
console.log('server started');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment