-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Description
PUBSUB_NUMSUB returns strings instead of numbers
import { createClient } from 'redis';
const main = async () => {
const client = createClient({
url: 'redis://localhost:6379/0',
password: 'example'
});
await client.connect();
// Promise<{ [x: string]: number }>
const res = await client.PUBSUB_NUMSUB(["test", "test2"]);
// [Object: null prototype] { test: '0', test2: '0' }
console.log(res);
};
void main();
Node.js Version
v22.13.0
Redis Server Version
docker image 6.2.6-alpine
Node Redis Version
5.8.3
Platform
macOS arm64
Logs
$ npx tsx index.ts
[Object: null prototype] { test: '0', test2: '0' }
kholiavko-roman