Socket
Book a DemoInstallSign in
Socket

catbox-multilevel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catbox-multilevel

Multilevel adapter for catbox

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

catbox-multilevel

npm release

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

Keywords

cache

FAQs

Package last updated on 26 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts