Skip to content

Instantly share code, notes, and snippets.

View flashblaze's full-sized avatar
💻

Neeraj Lagwankar flashblaze

💻
View GitHub Profile
@flashblaze
flashblaze / node_redis_cache.js
Created August 21, 2019 05:59 — 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.REDIS_PORT || 6379;
const client = redis.createClient(REDIS_PORT);
const app = express();