api-cache.ts

import * as apicache from 'apicache';

export default function apiCache() {
  const cache = apicache.middleware;
  return cache('1 hour');
}