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
go-redis supports extending the client identification phase to allow projects to send their own custom client identification.
168
+
169
+
#### Default Client Identification
170
+
171
+
By default, go-redis automatically sends the client library name and version during the connection process. This feature is available in redis-server as of version 7.2. As a result, the command is "fire and forget", meaning it should fail silently, in the case that the redis server does not support this feature.
172
+
173
+
#### Disabling Identity Verification
174
+
175
+
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.
176
+
177
+
To disable verification, set the `DisableIndentity` option to `true` in the Redis client options:
178
+
179
+
```go
180
+
rdb:= redis.NewClient(&redis.Options{
181
+
Addr: "localhost:6379",
182
+
Password: "",
183
+
DB: 0,
184
+
DisableIndentity: true, // Disable set-info on connect
0 commit comments