This package has been deprecated

Author message:

Package has been moved to https://www.npmjs.com/package/@nimpl/cache-in-memory

next-impl-cache-in-memory
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

next-impl-cache-in-memory

Base cacheHandler for next.js, which cache data in-memory

Installation

Using npm:

npm i next-impl-cache-in-memory

Using yarn:

yarn add next-impl-cache-in-memory

Usage

You can use cacheHandler by specifying the path to it in the application configuration:

/** @type {import('next').NextConfig} */
const nextConfig = {
    cacheMaxMemorySize: 0,
    cacheHandler: require.resolve('next-impl-cache-in-memory'),
};

However, it is recommended to use it together with next-impl-cache-adapter. The package will allow you to expand the capabilities of cacheHandler and also reuse the cache between different application instances. More details

Examples

Base example with next-impl-cache-in-memory. See example.

License

MIT

Package Sidebar

Install

npm i next-impl-cache-in-memory

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

6.08 kB

Total Files

6

Last publish

Collaborators

  • vordgi