Skip to content

Instantly share code, notes, and snippets.

Christian Rocha meowgorithm

Block or report user

Report or block meowgorithm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View node-express-redis-cache.js
var zlib = require('zlib');
var redis = require('redis');
var redisClient = redis.createClient();
var crypto = require('crypto');
// Our custom caching write function
function cached(body, lifetime, type) {
var key = this.req.originalUrl;
var res = this;
var etag, len;
You can’t perform that action at this time.