import { MainLayout } from "@components/layouts/main.tsx"; import { Handlers, PageProps } from "$fresh/server.ts"; import { getCacheInfo } from "@lib/cache.ts"; export const handler: Handlers< { cacheInfo: ReturnType } > = { GET(_, ctx) { return ctx.render({ cacheInfo: getCacheInfo() }); }, }; export default function Greet( props: PageProps< { cacheInfo: ReturnType } >, ) { const { cacheInfo } = props.data; return (
          {JSON.stringify(cacheInfo, null, 2)}
        
); }