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
Copy file name to clipboardexpand all lines: API.md
+1
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ Creates a Redis instance
62
62
|[options.keyPrefix]| <code>string</code> | <code>"''"</code> | The prefix to prepend to all keys in a command. ```javascript var redis = new Redis({ lazyConnect: true }); // No attempting to connect to the Redis server here. // Now let's connect to the Redis server redis.get('foo', function () { }); ```|
63
63
|[options.retryStrategy]| <code>function</code> || See "Quick Start" section |
64
64
|[options.reconnectOnError]| <code>function</code> || See "Quick Start" section |
65
+
|[options.readOnly]| <code>boolean</code> | <code>false</code> | Enable READONLY mode for the connection. Only available for cluster mode. |
0 commit comments