MCPcopy Index your code
hub / github.com/redis/node-redis / constructor

Method constructor

packages/test-utils/lib/proxy/redis-proxy.ts:90–104  ·  view source on GitHub ↗
(config: ProxyConfig)

Source from the content-addressed store, hash-verified

88 private globalInterceptors: Interceptor[] = [];
89
90 constructor(config: ProxyConfig) {
91 super();
92
93
94 this.config = {
95 listenHost: '127.0.0.1',
96 timeout: 30000,
97 enableLogging: false,
98 ...config
99 };
100
101 this.connections = new Map();
102 this.isRunning = false;
103 this.server = this.createServer();
104 }
105
106 public async start(): Promise<void> {
107 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

createServerMethod · 0.95

Tested by

no test coverage detected