@nuxtjs/component-cache
[![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
Last updated 3 months ago by pi0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/component-cache 
SYNC missed versions from official npm registry.

Component Cache

npm npm (scoped with tag)

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 to modules section of nuxt.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)

Current Tags

  • 1.1.6                                ...           latest (3 months ago)

14 Versions

  • 1.1.6                                ...           3 months ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 13
This Week 342
This Month 972
Last Day 39
Last Week 423
Last Month 2,085
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |