Memory adapter for catbox
$ cnpm install @commercial/catbox-memory 
SYNC missed versions from official npm registry.


Memory adapter for catbox.

Build Status


This version of the package requires a commercial license. You may not use, copy, or distribute it without first acquiring a commercial license from Sideway Inc. Using this software without a license is a violation of US and international law. To obtain a license, please contact sales@sideway.com. The open source version of this package can be found here.


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

Note: the maximum allowed value for ttl is 2^31-1, which is around 24.8 days.

Current Tags

  • 2.1.0                                ...           latest (a year ago)
  • 3.2.1                                ...           lts (8 months ago)

2 Versions

  • 3.2.1                                ...           8 months ago
  • 2.1.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |