Skip to content

Commit

Permalink
refactor(be): departures caching
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Oct 28, 2024
1 parent f44626a commit d7e8242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/backend/src/modules/departure/departure.controller.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CacheInterceptor, CacheTTL } from "@nestjs/cache-manager";
import {
Controller,
Get,
Expand All @@ -23,7 +24,8 @@ import { toArray } from "src/utils/array.utils";

@ApiTags("departure")
@Controller("departure")
@UseInterceptors(LogInterceptor)
@UseInterceptors(CacheInterceptor, LogInterceptor)
@CacheTTL(2_000)
export class DepartureController {
constructor(private readonly departureService: DepartureService) {}

Expand Down

0 comments on commit d7e8242

Please sign in to comment.