-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
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,
},
});
The default configuration for RediBox:
- 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)