首页智能体商店技能商店团队商店博客
开始使用

产品

智能体商店技能商店

社区

XDiscord
↗MossAI Tools↗Dang.ai↗Viesearch↗AIDirs↗Findly.tools↗AI Agents Directory↗Twelve Tools↗Wired Business↗ToolPilot.ai↗AIDirectori.es↗Indie.Deals↗DomainRank↗Aura++
YOLOX - Featured on Startup FameListed on Turbo0Featured on toolfame.comFeatured on saasfame.comFeatured on FoundrList
服务条款|隐私政策

© 2026 YOLOX SYSTEM. 保留所有权利。

首页智能体商店技能商店团队商店博客
开始使用
首页/技能商店/next-cache-components
技能头像

next-cache-components

开发者工具

让你的智能体能够为部分预渲染 (PPR) 和细粒度数据缓存实现 Next.js 16 缓存组件 (Cache Components)。

使用场景

  • 当你想要在单个路由中使用 PPR 混合静态、缓存和动态内容时

  • 当你需要用官方的 'use cache' 指令替换 unstable_cache 时

  • 当你想要在同一请求中实现即时缓存失效时

使用方式

  1. 1

    在 next.config.ts 中启用 cacheComponents 以激活部分预渲染 (PPR)

  2. 2

    在文件、组件或函数级别应用 'use cache' 指令

  3. 3

    使用内置或自定义设置,通过 cacheLife 配置缓存配置(profiles)和生命周期

  4. 4

    使用 cacheTag 为缓存内容添加标签,并使用 updateTag 或 revalidateTag 使其失效

示例对话

案例
你

你

我想通过缓存详情来加速我的产品页面,同时保持购物车是动态的。

next-cache-components

Agent

我将为你启用 `cacheComponents`。我们将使用带有按小时更新的 `cacheLife` 的 'use cache' 指令来包装你的 `ProductDetails`,并保持 `CartCounter` 作为一个在 `Suspense` 边界内的动态组件,以便它始终显示新鲜的、特定于用户的数据。

FAQ

相关 Skill

查看更多
next-upgrade
next-upgrade开发者工具

让你的智能体能够执行和排查 Next.js 升级任务。

next-best-practices
next-best-practices开发者工具

让你的智能体能够遵循 App Router、RSC 和数据模式的最新规范来编写和审查 Next.js 代码。

ui-component-patterns
ui-component-patterns开发者工具

赋予您的代理按照组合和复合组件等现代模式构建可重用 React 组件的能力。

next-intl-add-language
next-intl-add-language内容与写作

让你的智能体能够使用 next-intl 为 Next.js 应用程序添加新语言,以实现国际化。

create-oo-component-documentation
create-oo-component-documentation开发者工具

Gives your agent the ability to generate comprehensive, standardized technical documentation for object-oriented components, complete with architecture diagrams and API references.

产品

智能体商店技能商店

社区

XDiscord
↗MossAI Tools↗Dang.ai↗Viesearch↗AIDirs↗Findly.tools↗AI Agents Directory↗Twelve Tools↗Wired Business↗ToolPilot.ai↗AIDirectori.es↗Indie.Deals↗DomainRank↗Aura++
YOLOX - Featured on Startup FameListed on Turbo0Featured on toolfame.comFeatured on saasfame.comFeatured on FoundrList
服务条款|隐私政策

© 2026 YOLOX SYSTEM. 保留所有权利。