4.2.4 • Published 7 years ago
catbox-redis v4.2.4
catbox-redis
Redis adapter for catbox
Lead Maintainer: Marcus Poehls
Options
url- the Redis server URL (ifurlis provided,host,port, andsocketare 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 (ifsocketis provided,hostandportare 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 whensentinelsis specified)
Use a Custom Redis Client
catbox-redis allows you to specify a custom Redis client. Using a custom client puts you in charge of lifecycle handling (client start/stop).
Requirements
clientmust be compatible with theioredisAPIclientmust also expose thestatusproperty that needs to matchreadywhen connectedclientis ready whenclient.status === 'ready'resolves totrue
All other options of catbox-redis are ignored when providing a custom client.
client- a custom Redis client instance
Tests
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 test4.2.4
7 years ago
4.2.3
7 years ago
4.2.2
7 years ago
4.2.1
7 years ago
4.2.0
7 years ago
4.1.0
8 years ago
4.0.0
8 years ago
3.1.1
8 years ago
3.1.0
8 years ago
3.0.2
8 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
1.0.10
10 years ago
2.0.0
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.9
10 years ago
1.0.8
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
11 years ago
1.0.3
11 years ago
1.0.2
11 years ago
1.0.1
12 years ago
1.0.0
12 years ago