Skip to content
🏢 Memory adapter for catbox
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Fix typo. Closes #64 Apr 2, 2019
test Update deps. Closes #69 Aug 14, 2019
.gitignore Cleanup. Closes #65. Closes #66 Apr 2, 2019
.travis.yml Update .travis.yml Apr 25, 2019 Add Dec 4, 2018 Cleanup. Closes #65. Closes #66 Apr 2, 2019 Update Apr 25, 2019
package.json 4.1.1 Aug 14, 2019


Memory adapter for catbox. This adapter is not designed to share a common cache between multiple processes (e.g. in a cluster mode). It uses a single interval timeout to look for expired records and clean them from memory.

Build Status


  • 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).
  • minCleanupIntervalMsec - the minimum number of milliseconds in between each cache cleanup. Defaults to 1 second (1000).
  • cloneBuffersOnGet - by default, buffers stored in the cache are copied when they are set but not when they are retrieved. This means a change to the buffer returned by a get() will change the value in the cache. To prevent this, set cloneBuffersOnGet to true to always return a copy of the cached buffer. Defaults to false.
You can’t perform that action at this time.