Redis adapter for catbox
Lead Maintainer: Loic Mahieu
url
- the Redis server URL (ifurl
is provided,host
,port
, andsocket
are ignored)host
- the Redis server hostname. Defaults to'127.0.0.1'
.port
- the Redis server port or unix domain socket path. Defaults to6379
.socket
- the unix socket string to connect to (ifsocket
is provided,host
andport
are ignored)password
- the Redis authentication password when required.database
- the Redis database.partition
- this will store items under keys that start with this value. (Default: '')sentinels
- an array of redis sentinel addresses to connect to.sentinelName
- the name of the sentinel master. (Only needed whensentinels
is specified)
The test suite expects:
- a redis server to be running on port 6379
- a redis server listenning to port 6378 and requiring a password: 'secret'
- a redis server listenning on socket
/tmp/redis.sock
See .travis.yml
redis-server&
npm test