This website uses cookies
Read our Privacy policy and Terms of use for more information.
@Injectable() export class TemplateService private cache: Map<string, HandlebarsTemplateDelegate> = new Map();
Generamos un módulo dedicado:
async compileWithCache(templateName: string, data: any): Promise<string> const cacheKey = `template:$templateName:$JSON.stringify(data)`; const cached = await this.redis.get(cacheKey); if (cached) return cached; NestJs Reportes Genera PDFs desde Node Full -Mega-