@zintrust/cache-redis 0.4.71 → 0.4.72

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.
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@zintrust/cache-redis",
3
- "version": "0.4.67",
4
- "buildDate": "2026-04-06T10:05:15.346Z",
3
+ "version": "0.4.72",
4
+ "buildDate": "2026-04-06T17:13:09.661Z",
5
5
  "buildEnvironment": {
6
6
  "node": "v22.22.1",
7
7
  "platform": "darwin",
8
8
  "arch": "arm64"
9
9
  },
10
10
  "git": {
11
- "commit": "f5a9d786",
11
+ "commit": "996fb4dc",
12
12
  "branch": "release"
13
13
  },
14
14
  "package": {
@@ -40,16 +40,16 @@
40
40
  "sha256": "5b0ae2883872ce974ecaf01f07d35b72e6da468439912a57734ccd5222705bfd"
41
41
  },
42
42
  "build-manifest.json": {
43
- "size": 1701,
44
- "sha256": "b5b1dd88e1a45ad9ea5e2aa01d63212eaf3199c2d27c80dbdeb62cafbb08b801"
43
+ "size": 1702,
44
+ "sha256": "56b119a0de0905853463885edc07919693b509d40cd06133ffa91eb3a600ab56"
45
45
  },
46
46
  "index.d.ts": {
47
47
  "size": 842,
48
48
  "sha256": "b47614dfdb736524165785958f4a685818c055315961c2e2b48d99ef6ca491e2"
49
49
  },
50
50
  "index.js": {
51
- "size": 5371,
52
- "sha256": "b45495a3a32724f5181ecb82558e0e3f6afc6ab9fb106163709d8980f26161ea"
51
+ "size": 6819,
52
+ "sha256": "52212fcd6e65730e0fedae07e2207c4270cd40cc1e437a471a9e89b7eebf49c9"
53
53
  },
54
54
  "register.d.ts": {
55
55
  "size": 184,
package/dist/index.js CHANGED
@@ -141,7 +141,11 @@ const createNodeCacheDriver = (config) => {
141
141
  const ensureClient = async () => {
142
142
  if (client === undefined) {
143
143
  const { createClient } = await importRedis();
144
- client = createClient({ socket: { host: config.host, port: config.port } });
144
+ client = createClient({
145
+ socket: { host: config.host, port: config.port },
146
+ password: config.password,
147
+ database: config.database ?? 0,
148
+ });
145
149
  }
146
150
  if (!connected) {
147
151
  await client.connect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/cache-redis",
3
- "version": "0.4.71",
3
+ "version": "0.4.72",
4
4
  "description": "Redis cache driver for ZinTrust.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "node": ">=20.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@zintrust/core": "^0.4.71"
26
+ "@zintrust/core": "^0.4.72"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -42,4 +42,4 @@
42
42
  "build": "tsc -p tsconfig.json",
43
43
  "prepublishOnly": "npm run build"
44
44
  }
45
- }
45
+ }