caching
NestJS Caching
When to Use This Skill
Use this skill when:
- Improving application performance
- Reducing database load
- Caching API responses
- Storing frequently accessed data
- Implementing Redis caching
- Setting up cache invalidation
- Using cache interceptors for automatic caching
- Managing cache TTL (Time To Live)
What is Caching?
Caching stores frequently accessed data in memory to reduce expensive operations like database queries or external API calls. NestJS provides a built-in cache module that supports in-memory caching and Redis.
Installation
More from ramziddin/ccplugins
security
NestJS security best practices including CORS, CSRF protection, Helmet for HTTP headers, rate limiting, encryption, and hashing. Use when implementing security features, hardening applications, or protecting against common vulnerabilities.
3authentication
NestJS authentication with JWT, Passport, local/JWT strategies, and auth guards. Use when implementing user login, token generation, protected routes, or integrating authentication systems.
3exception-filters
NestJS exception filters for handling errors, customizing error responses, logging exceptions, and providing consistent error formatting across your application.
2cli
NestJS CLI for generating resources, managing workspaces, building applications, and development commands. Use when scaffolding NestJS projects, generating boilerplate code, or managing monorepo structures.
2testing
NestJS unit and E2E testing with Test.createTestingModule(), mocking dependencies, testing best practices, and integration testing strategies. Use when writing tests for controllers, services, or full application flows.
2controllers
NestJS controllers for handling HTTP requests, routing, route parameters, query parameters, request payloads, and responses. Use when creating API endpoints, handling HTTP methods, or working with request/response objects.
2