Skip to content

Commit a51b804

Browse files
icyJosephhuozhi
authored andcommitted
docs: cacheHandlers (#85311)
1 parent a63951f commit a51b804

File tree

6 files changed

+443
-2
lines changed

6 files changed

+443
-2
lines changed

docs/01-app/03-api-reference/01-directives/use-cache-private.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ related:
77
links:
88
- app/api-reference/directives/use-cache
99
- app/api-reference/config/next-config-js/cacheComponents
10+
- app/api-reference/config/next-config-js/cacheHandlers
1011
- app/api-reference/functions/cacheLife
1112
- app/api-reference/functions/cacheTag
1213
- app/guides/prefetching

docs/01-app/03-api-reference/01-directives/use-cache-remote.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ related:
88
- app/api-reference/directives/use-cache
99
- app/api-reference/directives/use-cache-private
1010
- app/api-reference/config/next-config-js/cacheComponents
11+
- app/api-reference/config/next-config-js/cacheHandlers
1112
- app/api-reference/functions/cacheLife
1213
- app/api-reference/functions/cacheTag
1314
- app/api-reference/functions/connection

docs/01-app/03-api-reference/01-directives/use-cache.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ related:
88
- app/api-reference/directives/use-cache-private
99
- app/api-reference/config/next-config-js/cacheComponents
1010
- app/api-reference/config/next-config-js/cacheLife
11+
- app/api-reference/config/next-config-js/cacheHandlers
1112
- app/api-reference/functions/cacheTag
1213
- app/api-reference/functions/cacheLife
1314
- app/api-reference/functions/revalidateTag
@@ -112,7 +113,7 @@ This means `use cache` cannot be used with [runtime data](/docs/app/getting-star
112113
113114
## `use cache` at runtime
114115

115-
On the **server**, the cache entries of individual components or functions will be cached in-memory.
116+
On the **server**, the cache entries of individual components or functions will be cached in-memory by default. You can customize the cache storage by configuring [`cacheHandlers`](/docs/app/api-reference/config/next-config-js/cacheHandlers) in your `next.config.js` file.
116117

117118
Then, on the **client**, any content returned from the server cache will be stored in the browser's memory for the duration of the session or until [revalidated](#during-revalidation).
118119

0 commit comments

Comments
 (0)