-
-
Save marcoshenrique-dev/15a263be94f21c6dc293f35abf4f5707 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 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