---
title: "Discussion on \"Next.js use cache directive\" | Hashnode"
description: "Discussion on \"Next.js use cache directive\". useCache directive from Next.js designates a component and/or a function to be cached. It can be used at the top of a file to indicate that all exports in the file are cacheable, or inline at the top of a function or component to inform Next.js the r..."
url: "https://hashnode.com/posts/nextjs-use-cache-directive/6778293f6567ddeed1aab07e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Next.js use cache directive](https://blog.nidhin.dev/nextjs-use-cache-directive?utm_source=hashnode&utm_medium=feed)

useCache directive from Next.js designates a component and/or a function to be cached. It can be used at the top of a file to indicate that all exports in the file are cacheable, or inline at the top of a function or component to inform Next.js the r...

Jan 3, 2025 · 4 min read · blog.nidhin.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#caching](https://hashnode.com/tag/caching)
-   [#directive](https://hashnode.com/tag/directive)
-   [#nextjs15](https://hashnode.com/tag/nextjs15)

## Written by

[nidhinkumar](https://hashnode.com/@nidhinkumar)

@nidhinkumar · Coimbatore, Tamilnadu, India

  
[View profile](https://hashnode.com/@nidhinkumar)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
