Skip to content

Commit d316c4c

Browse files
committed
refactor(#128): 캐시 타임 TIME 상수 적용
1 parent ba8bccf commit d316c4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/story/_api/stories.queries.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { queryOptions } from "@tanstack/react-query";
22

3+
import { TIME } from "@/constants";
4+
35
import { getStories, getStoriesByKakaoId } from "./stories.api";
46

57
export const storiesQueryKeys = {
@@ -14,8 +16,8 @@ export const storiesQueryKeys = {
1416

1517
export const CACHE_CONSTANTS = {
1618
STORIES_LIST: {
17-
STALE_TIME: 5 * 60 * 1000,
18-
GC_TIME: 10 * 60 * 1000,
19+
STALE_TIME: 5 * TIME.MINUTE,
20+
GC_TIME: 10 * TIME.MINUTE,
1921
},
2022
} as const;
2123

0 commit comments

Comments
 (0)