Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/content/docs/ko/reference/content-loader-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export function myLoader(config): LiveLoader<Product, ProductEntryFilter, Produc
}
```

그런 다음 페이지에서 이러한 힌트를 사용할 수 있습니다. [라우트 캐싱](/ko/guides/caching/)이 활성화된 경우 캐시 힌트를 `Astro.cache.set()`에 직접 전달합니다:
이제 페이지에서 이러한 힌트를 사용할 수 있습니다. [캐시 프로바이더를 구성](/ko/guides/caching/#캐싱-설정)했다면, 캐시 힌트를 [`Astro.cache.set()`](/ko/reference/api-reference/#cacheset)에 직접 전달하세요:

```astro title="src/pages/store/[id].astro"
---
Expand All @@ -633,7 +633,7 @@ Astro.cache.set({ maxAge: 300 });
<p>{entry.data.description}</p>
```

라우트 캐싱이 활성화되지 않은 경우, 고유한 캐싱 전략에 따라 응답 헤더를 수동으로 설정하는 데 캐시 힌트를 사용할 수 있습니다:
캐시 프로바이더가 활성화되지 않은 경우, 고유한 캐싱 전략에 따라 응답 헤더를 수동으로 설정하는 데 캐시 힌트를 사용할 수 있습니다:

```astro title="src/pages/store/[id].astro"
---
Expand Down Expand Up @@ -1459,6 +1459,8 @@ ID로 저장소에 엔트리가 존재하는지 확인합니다.

이 특정 엔트리를 캐싱하는 방법에 대한 힌트를 제공하기 위한 선택적 객체입니다.

<ReadMore>콘텐츠 컬렉션 가이드에서 [엔트리 수준에서 캐시 힌트를 사용하는 방법](/ko/guides/content-collections/#엔트리-수준-캐시-힌트)을 확인하세요.</ReadMore>

### `LiveDataCollection`

<p>
Expand Down Expand Up @@ -1489,9 +1491,11 @@ ID로 저장소에 엔트리가 존재하는지 확인합니다.

이 컬렉션을 캐싱하는 방법에 대한 지침을 제공하는 선택적 객체입니다. 이 객체는 제공된 경우 각 개별 엔트리에 정의된 캐시 힌트와 병합됩니다.

<ReadMore>콘텐츠 컬렉션 가이드에서 [컬렉션 수준에서 캐시 힌트를 사용하는 방법](/ko/guides/content-collections/#컬렉션-수준-캐시-힌트)을 확인하세요.</ReadMore>

### `CacheHint`

로더가 [`LiveDataCollection`](#livedatacollection) 또는 [`LiveDataEntry`](#livedataentry)의 `cacheHint` 속성을 통해 반환할 수 있는 객체로, 응답 캐싱을 돕기 위한 힌트를 제공합니다. 다음 속성을 포함합니다:
로더가 [`LiveDataCollection`](#livedatacollection) 또는 [`LiveDataEntry`](#livedataentry)의 `cacheHint` 속성을 통해 반환할 수 있는 객체로, [응답 캐싱](/ko/guides/caching/)을 돕기 위한 힌트를 제공합니다. 다음 속성을 포함합니다:

#### `CacheHint.tags`

Expand Down
20 changes: 20 additions & 0 deletions src/content/docs/ko/reference/modules/astro-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ import {
envField,
fontProviders,
getViteConfig,
memoryCache,
logHandlers,
mergeConfig,
passthroughImageService,
sessionDrivers,
Expand Down Expand Up @@ -307,6 +309,24 @@ export default defineConfig({

사용자 정의 Vite 구성 객체와 선택적 Astro 구성 객체를 병합하여 사용할 Vite 구성을 가져옵니다. 이는 [테스팅을 위해 Vitest를 설정](/ko/guides/testing/#vitest)할 때 유용합니다.

### `memoryCache()`

<p>
**타입:** <code>(config?: <a href="/ko/reference/cache-provider-reference/#memorycache-옵션">MemoryCacheProviderOptions</a>) => <a href="/ko/reference/cache-provider-reference/#cacheproviderconfig">CacheProviderConfig\<MemoryCacheProviderOptions\></a></code>
</p>

[캐시 프로바이더 참조의 `memoryCache()`](/ko/reference/cache-provider-reference/#내장-메모리-캐시-프로바이더)를 확인하세요.

### `logHandlers`

<p>

**Type:** `object`<br />
<Since v="7.0.0" />
</p>

Astro 구성에서 [로거를 설정](/ko/reference/configuration-reference/#로거-옵션)할 때 사용할 수 있는 [내장 로그 핸들러](/ko/reference/logger-reference/#내장-로거)를 설명합니다.

### `mergeConfig()`

[프로그래밍 방식 API 참조의 `mergeConfig()`](/ko/reference/programmatic-reference/#mergeconfig)를 확인하세요.
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/ko/reference/modules/astro-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ const { error } = await getLiveCollection('products');

이 컬렉션을 캐시하는 방법에 대한 지침을 제공하는 객체입니다.

[라우트 캐싱](/ko/guides/caching/)이 활성화된 경우, 캐시 힌트를 `Astro.cache.set()`에 직접 전달하세요:
[캐시 프로바이더를 구성](/ko/guides/caching/#캐싱-설정)했다면, 캐시 힌트를 [`Astro.cache.set()`](/ko/reference/api-reference/#cacheset)에 직접 전달하세요:

```astro title="src/pages/shop/index.astro"
---
Expand Down Expand Up @@ -640,7 +640,7 @@ if (error) {

캐싱 전략을 결정하는 데 사용될 수 있는 데이터를 제공하는 객체입니다.

[라우트 캐싱](/ko/guides/caching/)이 활성화된 경우, 캐시 힌트를 `Astro.cache.set()`에 직접 전달하세요:
[캐시 프로바이더를 구성](/ko/guides/caching/#캐싱-설정)했다면, 캐시 힌트를 [`Astro.cache.set()`](/ko/reference/api-reference/#cacheset)에 직접 전달하세요:

```astro title="src/pages/shop/[id].astro"
---
Expand Down
Loading