MCPcopy
hub / github.com/redis/ioredis / Redis

Interface Redis

lib/Redis.ts:1004–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004interface Redis extends EventEmitter {
1005 on(event: "message", cb: (channel: string, message: string) => void): this;
1006 once(event: "message", cb: (channel: string, message: string) => void): this;
1007
1008 on(
1009 event: "messageBuffer",
1010 cb: (channel: Buffer, message: Buffer) => void
1011 ): this;
1012 once(
1013 event: "messageBuffer",
1014 cb: (channel: Buffer, message: Buffer) => void
1015 ): this;
1016
1017 on(
1018 event: "pmessage",
1019 cb: (pattern: string, channel: string, message: string) => void
1020 ): this;
1021 once(
1022 event: "pmessage",
1023 cb: (pattern: string, channel: string, message: string) => void
1024 ): this;
1025
1026 on(
1027 event: "pmessageBuffer",
1028 cb: (pattern: string, channel: Buffer, message: Buffer) => void
1029 ): this;
1030 once(
1031 event: "pmessageBuffer",
1032 cb: (pattern: string, channel: Buffer, message: Buffer) => void
1033 ): this;
1034
1035 on(event: "error", cb: (error: Error) => void): this;
1036 once(event: "error", cb: (error: Error) => void): this;
1037
1038 on(event: RedisStatus, cb: () => void): this;
1039 once(event: RedisStatus, cb: () => void): this;
1040
1041 // base method of EventEmitter
1042 on(event: string | symbol, listener: (...args: any[]) => void): this;
1043 once(event: string | symbol, listener: (...args: any[]) => void): this;
1044}
1045
1046applyMixin(Redis, EventEmitter);
1047

Callers 16

basic.test.tsFile · 0.65
global.tsFile · 0.65
connectMethod · 0.65
getCommandsFromMonitorFunction · 0.65
connector.tsFile · 0.65
ConnectionPool.tsFile · 0.65
_connectMethod · 0.80
monitorMethod · 0.80
setSocketTimeoutMethod · 0.80
connectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…