Socket
Socket
Sign inDemoInstall

egg-redis

Package Overview
Dependencies
18
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.2 to 2.4.0

9

History.md
2.4.0 / 2019-06-13
==================
**features**
* [[`5fbd718`](http://github.com/eggjs/egg-redis/commit/5fbd718c60e4c82a94f34a96583ed877d8e4fa5f)] - feat: add config.client.weakDependent (#30) (Yiyu He <<dead_horse@qq.com>>)
**others**
* [[`b307f52`](http://github.com/eggjs/egg-redis/commit/b307f52ff8d9b67769b57498bb39fa835916d472)] - chore: test on node@12 (dead-horse <<dead_horse@qq.com>>)
2.3.2 / 2019-04-24

@@ -3,0 +12,0 @@ ==================

@@ -55,2 +55,10 @@ 'use strict';

const index = count++;
if (config.weakDependent) {
app.coreLogger.info(`[egg-redis] instance[${index}] is weak dependent and won't block app start`);
client.once('ready', () => {
app.coreLogger.info(`[egg-redis] instance[${index}] status OK`);
});
return;
}
await awaitFirst(client, [ 'ready', 'error' ]);

@@ -57,0 +65,0 @@ app.coreLogger.info(`[egg-redis] instance[${index}] status OK, client ready`);

2

package.json
{
"name": "egg-redis",
"version": "2.3.2",
"version": "2.4.0",
"description": "Redis plugin for egg",

@@ -5,0 +5,0 @@ "eggPlugin": {

@@ -88,4 +88,4 @@ # egg-redis

sentinels: [{ // Sentinel instances
port: 26379, // Sentinel port
host: '127.0.0.1', // Sentinel host
port: 26379, // Sentinel port
host: '127.0.0.1', // Sentinel host
}],

@@ -137,2 +137,16 @@ name: 'mymaster', // Master name

**weakDependent**
```javascript
config.redis = {
client: {
port: 6379, // Redis port
host: '127.0.0.1', // Redis host
password: 'auth',
db: 0,
weakDependent: true, // this redis instance won't block app start
},
}
```
## Usage

@@ -139,0 +153,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc