npm: npm install @hapi/catbox-memory

yarn: yarn add @hapi/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). It uses a single interval timeout to look for expired records and clean them from memory.


  • 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.


Update deps
breaking changes
Remove allowMixedContent option
Change module namespace
Typo _timeDue vs _timerDue
Remove engines
breaking changes
Update hoek v6
Buffers can change while in cache
Large overhead from expires times when highly populated
Change module namespace v3
Remove engines
Update deps
Remove new Buffer usage
Fix new Boom
Replace hash with Map
Sync client for catbox 10
Use big-time for long timeout support
breaking changes
Node 8
Commercial version of v2 branch
Update deps
fix: cancel timeouts on drop
Add .npmignore
add note to readme about the limitation of ttl
Update hapijs/catbox to 7.0.0
Clean up timers when the cache is stopped.
Remove Makefile in favor of npm scripts and enable linting
add node 0.11 to travis file
version 1.1.1. update to catbox 4 and lab 5 (replace chai with code)
Update to Lab 5
Update to catbox 4
Bump version to 1.1.0
Release 1.1.0
Add support for Buffers
Add build status to README
Add build status to readme
Update owner
Option to store buffer data
Up version and use lab 4
Fix total byteSize tracking in connection
Create named classes for cache objects
Memory limit does not restrict data size properly
Rename spumko to hapijs
Move large ttl (over 32bit) check from catbox
Bring coverage back to 100%
why peer depend instead of verify in parent