You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[options.retryStrategy]| <code>function</code> || See "Quick Start" section |
64
70
|[options.reconnectOnError]| <code>function</code> || See "Quick Start" section |
65
71
|[options.readOnly]| <code>boolean</code> | <code>false</code> | Enable READONLY mode for the connection. Only available for cluster mode. |
72
+
|[options.stringNumbers]| <code>boolean</code> | <code>false</code> | Force numbers to be always returned as JavaScript strings. This option is necessary when dealing with big numbers (exceed the [-2^53, +2^53] range). Notice that when this option is enabled, the JavaScript parser will be used even "hiredis" is specified because only JavaScript parser supports this feature for the time being. |
66
73
67
74
**Example**
68
75
```js
@@ -80,6 +87,7 @@ var urlRedis2 = new Redis('//localhost:6379');
80
87
var authedRedis =newRedis(6380, '192.168.100.1', { password:'password' });
| commandName | <code>string</code> | command name |
172
186
173
187
<aname="Commander+defineCommand"></a>
188
+
174
189
### redis.defineCommand(name, definition)
175
190
Define a custom command using lua script
176
191
@@ -184,28 +199,31 @@ Define a custom command using lua script
184
199
|[definition.numberOfKeys]| <code>number</code> | <code></code> | the number of keys. If omit, you have to pass the number of keys as the first argument every time you invoke the command |
185
200
186
201
<aname="Redis.createClient"></a>
202
+
187
203
### ~~Redis.createClient()~~
188
204
***Deprecated***
189
205
190
206
Create a Redis instance
191
207
192
208
**Kind**: static method of <code>[Redis](#Redis)</code>
| commandName | <code>string</code> | command name |
269
292
270
293
<aname="Commander+defineCommand"></a>
294
+
271
295
### cluster.defineCommand(name, definition)
272
296
Define a custom command using lua script
273
297
@@ -281,24 +305,27 @@ Define a custom command using lua script
281
305
|[definition.numberOfKeys]| <code>number</code> | <code></code> | the number of keys. If omit, you have to pass the number of keys as the first argument every time you invoke the command |
282
306
283
307
<aname="Commander+sendCommand"></a>
308
+
284
309
### *cluster.sendCommand()*
285
310
Send a command
286
311
287
312
**Kind**: instance abstract method of <code>[Cluster](#Cluster)</code>
@@ -310,13 +337,15 @@ This is the base class of Redis, Redis.Cluster and Pipeline
310
337
|[options.showFriendlyErrorStack]| <code>boolean</code> | <code>false</code> | Whether to show a friendly error stack. Will decrease the performance significantly. |
| commandName | <code>string</code> | command name |
330
359
331
360
<aname="Commander+defineCommand"></a>
361
+
332
362
### commander.defineCommand(name, definition)
333
363
Define a custom command using lua script
334
364
@@ -342,18 +372,21 @@ Define a custom command using lua script
342
372
|[definition.numberOfKeys]| <code>number</code> | <code></code> | the number of keys. If omit, you have to pass the number of keys as the first argument every time you invoke the command |
343
373
344
374
<aname="Commander+sendCommand"></a>
375
+
345
376
### *commander.sendCommand()*
346
377
Send a command
347
378
348
379
**Kind**: instance abstract method of <code>[Commander](#Commander)</code>
0 commit comments