egg-redis
Advanced tools
Comparing version 2.3.1 to 2.3.2
2.3.2 / 2019-04-24 | ||
================== | ||
**fixes** | ||
* [[`ce7e40e`](http://github.com/eggjs/egg-redis/commit/ce7e40eaae3f635654aaa101493e6cf4a921c6cc)] - fix: should listen redis ready event before app start (#29) (killa <<killa123@126.com>>) | ||
2.3.1 / 2019-04-10 | ||
@@ -3,0 +9,0 @@ ================== |
'use strict'; | ||
const assert = require('assert'); | ||
const awaitFirst = require('await-first'); | ||
@@ -54,11 +55,4 @@ module.exports = app => { | ||
const index = count++; | ||
if (app.config.redis.supportTimeCommand) { | ||
const serverTimes = await client.time(); | ||
// [ '1543378095', '393297' ] | ||
const dateTime = new Date(Number(String(serverTimes[0]) + String(serverTimes[1]).substring(0, 3))); | ||
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, redis server currentTime: ${dateTime}`); | ||
} else { | ||
await client.get('egg-redis-hello'); | ||
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, client ready`); | ||
} | ||
await awaitFirst(client, [ 'ready', 'error' ]); | ||
app.coreLogger.info(`[egg-redis] instance[${index}] status OK, client ready`); | ||
}); | ||
@@ -65,0 +59,0 @@ |
{ | ||
"name": "egg-redis", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Redis plugin for egg", | ||
@@ -24,16 +24,17 @@ "eggPlugin": { | ||
"dependencies": { | ||
"ioredis": "^3.2.2", | ||
"@types/ioredis": "^4.0.1" | ||
"@types/ioredis": "^4.0.10", | ||
"await-first": "^1.0.0", | ||
"ioredis": "^4.9.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^10.9.4", | ||
"typescript": "^3.0.3", | ||
"autod": "^3.0.1", | ||
"egg": "^2.3.0", | ||
"egg-bin": "^4.4.0", | ||
"egg-ci": "^1.8.0", | ||
"egg-mock": "^3.14.0", | ||
"eslint": "^4.18.1", | ||
"eslint-config-egg": "^7.0.0", | ||
"supertest": "^3.0.0", | ||
"autod": "^3.1.0", | ||
"egg": "^2.21.1", | ||
"egg-bin": "^4.13.0", | ||
"egg-ci": "^1.11.0", | ||
"egg-mock": "^3.22.2", | ||
"eslint": "^5.16.0", | ||
"eslint-config-egg": "^7.3.1", | ||
"supertest": "^4.0.2", | ||
"typescript": "^3.4.5", | ||
"utility": "^1.9.0" | ||
@@ -40,0 +41,0 @@ }, |
15334
3
134
+ Addedawait-first@^1.0.0
+ Addedawait-first@1.0.0(transitive)
+ Addeddebug@4.3.4(transitive)
+ Addedee-first@1.1.1(transitive)
+ Addedioredis@4.28.5(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedms@2.1.2(transitive)
+ Addedp-map@2.1.0(transitive)
+ Addedredis-errors@1.2.0(transitive)
+ Addedredis-parser@3.0.0(transitive)
+ Addedstandard-as-callback@2.1.0(transitive)
- Removedbluebird@3.7.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedflexbuffer@0.0.6(transitive)
- Removedioredis@3.2.2(transitive)
- Removedlodash.assign@4.2.0(transitive)
- Removedlodash.bind@4.2.1(transitive)
- Removedlodash.clone@4.5.0(transitive)
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedlodash.difference@4.5.0(transitive)
- Removedlodash.foreach@4.5.0(transitive)
- Removedlodash.isempty@4.4.0(transitive)
- Removedlodash.keys@4.2.0(transitive)
- Removedlodash.noop@3.0.1(transitive)
- Removedlodash.partial@4.2.1(transitive)
- Removedlodash.pick@4.4.0(transitive)
- Removedlodash.sample@4.2.1(transitive)
- Removedlodash.shuffle@4.2.0(transitive)
- Removedlodash.values@4.3.0(transitive)
- Removedms@2.0.0(transitive)
- Removedredis-parser@2.6.0(transitive)
Updated@types/ioredis@^4.0.10
Updatedioredis@^4.9.0