Skip to content

Commit 47ffeac

Browse files
committed
wip: legacy mode for v4
1 parent 7f7c9a5 commit 47ffeac

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/subscribers/redis-client/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,17 @@ const clientMulti = {
7676
]
7777
}
7878

79+
const legacyMode = {
80+
path: './redis-client/'
81+
}
82+
7983
module.exports = {
8084
'@redis/client': [
8185
addCommand,
8286
sendCommand, // redis v5, @redis/client v4
8387
clientSelect,
8488
clientMulti,
85-
commandsExecutor // redis v4, @redis/client v1
89+
commandsExecutor, // redis v4, @redis/client v1
90+
legacyMode
8691
]
8792
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
* Copyright 2026 New Relic Corporation. All rights reserved.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/

0 commit comments

Comments
 (0)