0.1.3 • Published 1 year ago

next-impl-cache-in-memory v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago