{"library":"nuxt-perfect-cache","type":"library","category":null,"description":"A Nuxt.js module for server-side page and API response caching using Redis. Current stable version is 1.1.4. It provides easy-to-configure Redis-backed caching of full rendered pages and API requests with per-route expiration. Key differentiators: simple module-based setup, injects $cacheFetch, $cacheRead, $cacheWrite methods, supports separate Redis server per route, and can ignore connection errors for resilience. Works with Nuxt 2 (SSR).","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","nuxt","ssr","cache","redis","universal","cacheRedis","prefectCache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install nuxt-perfect-cache","imports":["// nuxt.config.js modules: ['nuxt-perfect-cache', options]","// in asyncData or server-side: const data = await ctx.$cacheFetch({ key: 'myKey', expire: 120 }, () => fetch('...'))","// server-side only: const data = await ctx.$cacheRead({ key: 'myKey' }) await ctx.$cacheWrite({ key: 'myKey', expire: 3600 }, 'content')"]},{"cmd":"yarn add nuxt-perfect-cache","imports":[]},{"cmd":"pnpm add nuxt-perfect-cache","imports":[]}],"homepage":"https://github.com/ziaadini/nuxt-perfect-cache#readme","github":"https://github.com/ziaadini/nuxt-perfect-cache","docs":null,"changelog":null,"pypi":null,"npm":"nuxt-perfect-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}