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: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,16 +184,18 @@ By default, go-redis automatically sends the client library name and version dur
184
184
185
185
#### Disabling Identity Verification
186
186
187
-
When connection identity verification is not required or needs to be explicitly disabled, a `DisableIndentity` configuration option exists. In V10 of this library, `DisableIndentity` will become `DisableIdentity` in order to fix the associated typo.
187
+
When connection identity verification is not required or needs to be explicitly disabled, a `DisableIdentity` configuration option exists.
188
+
Initially there was a typo and the option was named `DisableIndentity` instead of `DisableIdentity`. The misspelled option is marked as Deprecated and will be removed in V10 of this library.
189
+
Although both options will work at the moment, the correct option is `DisableIdentity`. The deprecated option will be removed in V10 of this library, so please use the correct option name to avoid any issues.
188
190
189
-
To disable verification, set the `DisableIndentity` option to `true` in the Redis client options:
191
+
To disable verification, set the `DisableIdentity` option to `true` in the Redis client options:
190
192
191
193
```go
192
194
rdb:= redis.NewClient(&redis.Options{
193
195
Addr: "localhost:6379",
194
196
Password: "",
195
197
DB: 0,
196
-
DisableIndentity: true, // Disable set-info on connect
198
+
DisableIdentity: true, // Disable set-info on connect
0 commit comments