This file contains hidden or 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
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; |