Skip to content
Elliot Hesp edited this page Jul 28, 2016 · 5 revisions

Whilst creating a new instance of RediBox, you're able to pass in custom configuration options as the first parameter.

const RediBox = new RB({
  redis: {
    host: 'my-redis-host.com',
    port: 6380,
  },
});

Defaults

The default configuration for RediBox:

redis

  • scaleReads (all, slave)
  • dropBufferSupport (true, false)
  • keyPrefix ('rdb', string)
  • connectionTimeout (6000, integer|miliseconds)
  • host ('127.0.0.1', string)
  • port (6379, integer)
  • db (0, integer)

pubsub

log

hooks

Clone this wiki locally