@eggjs/redis 4.0.2-beta.1 → 4.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/redis.js +2 -2
- package/package.json +5 -5
package/dist/lib/redis.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from "node:assert";
|
|
2
2
|
import { once } from "node:events";
|
|
3
|
-
import
|
|
3
|
+
import IoRedis from "ioredis";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/redis.ts
|
|
6
6
|
var RedisBoot = class {
|
|
@@ -16,7 +16,7 @@ var RedisBoot = class {
|
|
|
16
16
|
};
|
|
17
17
|
let count = 0;
|
|
18
18
|
function createClient(options, app) {
|
|
19
|
-
const RedisClass = app.config.redis.Redis ??
|
|
19
|
+
const RedisClass = app.config.redis.Redis ?? IoRedis;
|
|
20
20
|
let client;
|
|
21
21
|
if ("cluster" in options && options.cluster === true) {
|
|
22
22
|
const config = options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/redis",
|
|
3
|
-
"version": "4.0.2-beta.
|
|
3
|
+
"version": "4.0.2-beta.2",
|
|
4
4
|
"description": "Valkey / Redis plugin for egg",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Valkey",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@types/node": "^24.10.2",
|
|
48
48
|
"detect-port": "^2.1.0",
|
|
49
49
|
"typescript": "^5.9.3",
|
|
50
|
-
"@eggjs/
|
|
51
|
-
"@eggjs/
|
|
52
|
-
"egg": "4.1.2-beta.
|
|
50
|
+
"@eggjs/tsconfig": "3.1.2-beta.2",
|
|
51
|
+
"@eggjs/mock": "7.0.2-beta.2",
|
|
52
|
+
"egg": "4.1.2-beta.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"egg": "4.1.2-beta.
|
|
55
|
+
"egg": "4.1.2-beta.2"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">= 22.18.0"
|