Skip to content

Instantly share code, notes, and snippets.

View jimmychung28's full-sized avatar
😊

Jimmy Chung jimmychung28

😊
View GitHub Profile
@jimmychung28
jimmychung28 / node_redis_cache.js
Created October 19, 2020 06:58 — 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();