@nuxtjs/component-cache
v1.1.6
Published
[![npm](https://img.shields.io/npm/dt/@nuxtjs/component-cache.svg?style=flat-square)](https://www.npmjs.com/package/@nuxtjs/component-cache) [![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/component-cache/latest.svg?style=flat-square)](http
Downloads
21,008
Keywords
Readme
Component Cache
vue-server-renderer has built-in support for component-level caching. This module automatically adds a LRU cache to project.
Setup
- Add
@nuxtjs/component-cache
dependency using yarn or npm to your project - Add
@nuxtjs/component-cache
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'@nuxtjs/component-cache',
// With options
['@nuxtjs/component-cache', { maxAge: 1000 * 60 * 60 }],
]
}
Options
See component-level caching for mor information.
max
- default:
10000
maxAge
- default:
1000 * 60 * 15
(15 minutes)