Memory adapter for catbox
Memory adapter for catbox.
Lead Maintainer - Wyatt Preul
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
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
Bufferdata 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
Note: the maximum allowed value for
2^31-1, which is around 24.8 days.