import expeditious from 'express-expeditious';
const cacheoptions: expeditious.ExpeditiousOptions = {
  namespace: 'expresscache',
  defaultTtl: '1 minute',
  statusCodeExpires: {
    404: 60 * 1000,
    500: 60 * 1000 // 1 minute in milliseconds
  }
};

export const CacheMiddleware = expeditious(cacheoptions);
