@nestjs/common#CACHE_MANAGER TypeScript Examples

The following examples show how to use @nestjs/common#CACHE_MANAGER. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: heatmap.service.ts    From office-hours with GNU General Public License v3.0 5 votes vote down vote up
constructor(@Inject(CACHE_MANAGER) private cacheManager: Cache) {}
Example #2
Source File: insights.service.ts    From office-hours with GNU General Public License v3.0 5 votes vote down vote up
constructor(
    private connection: Connection,
    @Inject(CACHE_MANAGER) private cacheManager: Cache,
  ) {}