Skip to content

Instantly share code, notes, and snippets.

View Gustavo-Kuze's full-sized avatar
🚀
while(alive){ keepLearning(); }

Gustavo-Kuze

🚀
while(alive){ keepLearning(); }
View GitHub Profile
@Gustavo-Kuze
Gustavo-Kuze / node_redis_cache.js
Created July 4, 2020 00:56 — forked from bradtraversy/node_redis_cache.js
Node.js & Redis Caching
const express = require('express');
const fetch = require('node-fetch');
const redis = require('redis');
const PORT = process.env.PORT || 5000;
const REDIS_PORT = process.env.PORT || 6379;
const client = redis.createClient(REDIS_PORT);
const app = express();