catbox-multilevel
v4.0.0
Published
Multilevel adapter for catbox
Downloads
9
Maintainers
Readme
catbox-multilevel
Multilevel (LevelDB) adapter for Catbox.
Check out the example server to get started... (You'll need to npm install
first)
Features
- Fast and embedded
- Great for a simple, shared cache in a multi-process / clustered app
- Good for tests in dependent apps, since you can spin up a multilevel instance in the node environment and it comes closer to simulating something like redis than the default memory adapter
- Tests are passing at 100% coverage.
Options
host
- the Multilevel server hostname. Defaults to'localhost'
.port
- the Multilevel server port or unix domain socket path. Defaults to3000
.auth
- the Multilevel authentication object when required.partition
- this will store items under keys that start with this value. (Default: '')sublevel
- this will store items in this sublevel. (Default: '')valueEncoding
- Set to match the valueEncoding of your multilevel. Only'json'
and'utf8'
are supported.
IMPORTANT
valueEncoding
should match your server, or you will have problems.- Only
utf8
keyEncodings are supported.
Based on the catbox-redis adapter.