@nuxtjs/component-cache

    1.1.6 • Public • Published

    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)

    Keywords

    none

    Install

    npm i @nuxtjs/component-cache

    DownloadsWeekly Downloads

    8,421

    Version

    1.1.6

    License

    MIT

    Unpacked Size

    6 kB

    Total Files

    5

    Last publish

    Collaborators

    • danielroe
    • clarkdo
    • pi0
    • atinux
    • alexchopin