Database
Complete Example
Controller:More Examples
TypeORM transaction with compensation:Runtime And Lifecycle Notes
Cache(undefined)removes the key unless negative caching is configured.Cache#setExpire(seconds)uses seconds.defineCachetyped placeholders supportstring,number, andboolean.RedisCache.loadCache()returnsread,write,remove,has, andmulti.RedisCache.removeTag(tag)removes tagged cache entries.fieldablecaches use Redis hashes and cannot combine with stale or negative cache options.Scheduler.add()supports cron strings and{ delay }.Scheduler.load()reads default exports from*.schedule.*files produced bydefineJob().scanDirectory()matches.ts,.js,.tsx,.jsx, and.mjs.
Verification Checklist
- Manual Redis clients call
disconnect()during cleanup. - Manual TypeORM data sources call
destroy()during cleanup. - Cache keys include app/tenant prefixes when shared Redis is used.
- Scheduled jobs have clear duplicate-run policy.