Need private packages and team management tools?Check out npm Teams »

@arve.knudsen/catbox-memory

3.1.2 • Public • Published

catbox-memory

Memory adapter for catbox. This adapter is not designed to share a common cache between multiple processes (e.g. in a cluster mode).

Lead Maintainer - Wyatt Preul

Current version: Current Version Build Status

Options

  • maxByteSize - sets an upper limit on the number of bytes that can be stored in the cache. Once this limit is reached no additional items will be added to the cache until some expire. The utilized memory calculation is a rough approximation and must not be relied on. Defaults to 104857600 (100MB).
  • allowMixedContent - by default, all data is cached as JSON strings, and converted to an object using JSON.parse() on retrieval. By setting this option to true, Buffer data can be stored alongside the stringified data. Buffers are not stringified, and are copied before storage to prevent the value from changing while in the cache. Defaults to false.

Install

npm i @arve.knudsen/catbox-memory

DownloadsWeekly Downloads

2

Version

3.1.2

License

BSD-3-Clause

Unpacked Size

8.27 kB

Total Files

5

Last publish

Collaborators

  • avatar