UNPKG

@trieb.work/nextjs-turbo-redis-cache

Version:

Designed for speed, scalability, and optimized performance, nextjs-turbo-redis-cache is your custom cache handler for demanding production environments.

16 lines (13 loc) 243 B
import { NextResponse } from 'next/server'; let counter = 0; export async function GET() { counter++; return NextResponse.json( { counter }, { headers: { 'Cache-Control': 'public, max-age=1', }, }, ); }