deno.land / x / mongoose@6.7.5 / examples / redis-todo / middleware / clearCache.js
12345678910'use strict';
const { clearCache } = require('../services/cache');
module.exports = async function(req, res, next) { await next(); // call endpoint console.log(req.userId); clearCache(req.userId);};
Version Info