diff --git a/src/content/docs/ko/reference/content-loader-reference.mdx b/src/content/docs/ko/reference/content-loader-reference.mdx index f459f6b3116cb..e45f6804657da 100644 --- a/src/content/docs/ko/reference/content-loader-reference.mdx +++ b/src/content/docs/ko/reference/content-loader-reference.mdx @@ -608,7 +608,7 @@ export function myLoader(config): LiveLoader{entry.data.description}

``` -라우트 캐싱이 활성화되지 않은 경우, 고유한 캐싱 전략에 따라 응답 헤더를 수동으로 설정하는 데 캐시 힌트를 사용할 수 있습니다: +캐시 프로바이더가 활성화되지 않은 경우, 고유한 캐싱 전략에 따라 응답 헤더를 수동으로 설정하는 데 캐시 힌트를 사용할 수 있습니다: ```astro title="src/pages/store/[id].astro" --- @@ -1459,6 +1459,8 @@ ID로 저장소에 엔트리가 존재하는지 확인합니다. 이 특정 엔트리를 캐싱하는 방법에 대한 힌트를 제공하기 위한 선택적 객체입니다. +콘텐츠 컬렉션 가이드에서 [엔트리 수준에서 캐시 힌트를 사용하는 방법](/ko/guides/content-collections/#엔트리-수준-캐시-힌트)을 확인하세요. + ### `LiveDataCollection`

@@ -1489,9 +1491,11 @@ ID로 저장소에 엔트리가 존재하는지 확인합니다. 이 컬렉션을 캐싱하는 방법에 대한 지침을 제공하는 선택적 객체입니다. 이 객체는 제공된 경우 각 개별 엔트리에 정의된 캐시 힌트와 병합됩니다. +콘텐츠 컬렉션 가이드에서 [컬렉션 수준에서 캐시 힌트를 사용하는 방법](/ko/guides/content-collections/#컬렉션-수준-캐시-힌트)을 확인하세요. + ### `CacheHint` -로더가 [`LiveDataCollection`](#livedatacollection) 또는 [`LiveDataEntry`](#livedataentry)의 `cacheHint` 속성을 통해 반환할 수 있는 객체로, 응답 캐싱을 돕기 위한 힌트를 제공합니다. 다음 속성을 포함합니다: +로더가 [`LiveDataCollection`](#livedatacollection) 또는 [`LiveDataEntry`](#livedataentry)의 `cacheHint` 속성을 통해 반환할 수 있는 객체로, [응답 캐싱](/ko/guides/caching/)을 돕기 위한 힌트를 제공합니다. 다음 속성을 포함합니다: #### `CacheHint.tags` diff --git a/src/content/docs/ko/reference/modules/astro-config.mdx b/src/content/docs/ko/reference/modules/astro-config.mdx index bbd3d8d533c00..65115a30d905c 100644 --- a/src/content/docs/ko/reference/modules/astro-config.mdx +++ b/src/content/docs/ko/reference/modules/astro-config.mdx @@ -138,6 +138,8 @@ import { envField, fontProviders, getViteConfig, + memoryCache, + logHandlers, mergeConfig, passthroughImageService, sessionDrivers, @@ -307,6 +309,24 @@ export default defineConfig({ 사용자 정의 Vite 구성 객체와 선택적 Astro 구성 객체를 병합하여 사용할 Vite 구성을 가져옵니다. 이는 [테스팅을 위해 Vitest를 설정](/ko/guides/testing/#vitest)할 때 유용합니다. +### `memoryCache()` + +

+**타입:** (config?: MemoryCacheProviderOptions) => CacheProviderConfig\ +

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

+ +**Type:** `object`
+ +

+ +Astro 구성에서 [로거를 설정](/ko/reference/configuration-reference/#로거-옵션)할 때 사용할 수 있는 [내장 로그 핸들러](/ko/reference/logger-reference/#내장-로거)를 설명합니다. + ### `mergeConfig()` [프로그래밍 방식 API 참조의 `mergeConfig()`](/ko/reference/programmatic-reference/#mergeconfig)를 확인하세요. diff --git a/src/content/docs/ko/reference/modules/astro-content.mdx b/src/content/docs/ko/reference/modules/astro-content.mdx index 28b4ae1c3187d..8c2ec8cd9bc7d 100644 --- a/src/content/docs/ko/reference/modules/astro-content.mdx +++ b/src/content/docs/ko/reference/modules/astro-content.mdx @@ -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" --- @@ -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" ---