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 is brought to you by :star:[**uptrace/uptrace**](https://github.com/uptrace/uptrace).
10
-
> Uptrace is an open-source APM tool that supports distributed tracing, metrics, and logs. You can
11
-
> use it to monitor applications and set up automatic alerts to receive notifications via email,
12
-
> Slack, Telegram, and others.
13
-
>
14
-
> See [OpenTelemetry](https://github.com/redis/go-redis/tree/master/example/otel) example which
15
-
> demonstrates how you can use Uptrace to monitor go-redis.
9
+
> go-redis is the official Redis client library for the Go programming language. It offers a straightforward interface for interacting with Redis servers.
@@ -184,16 +196,18 @@ By default, go-redis automatically sends the client library name and version dur
184
196
185
197
#### Disabling Identity Verification
186
198
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.
199
+
When connection identity verification is not required or needs to be explicitly disabled, a `DisableIdentity` configuration option exists.
200
+
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.
201
+
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
202
189
-
To disable verification, set the `DisableIndentity` option to `true` in the Redis client options:
203
+
To disable verification, set the `DisableIdentity` option to `true` in the Redis client options:
190
204
191
205
```go
192
206
rdb:= redis.NewClient(&redis.Options{
193
207
Addr: "localhost:6379",
194
208
Password: "",
195
209
DB: 0,
196
-
DisableIndentity: true, // Disable set-info on connect
210
+
DisableIdentity: true, // Disable set-info on connect
Please see [out contributing guidelines](CONTRIBUTING.md) to help us improve this library!
234
+
In the Redis-Search module, **the default dialect is 2**. If needed, you can explicitly specify a different dialect using the appropriate configuration in your queries.
235
+
236
+
**Important**: Be aware that the query dialect may impact the results returned. If needed, you can revert to a different dialect version by passing the desired dialect in the arguments of the command you want to execute.
237
+
For example:
238
+
```
239
+
res2, err:= rdb.FTSearchWithArgs(ctx,
240
+
"idx:bicycle",
241
+
"@pickup_zone:[CONTAINS $bike]",
242
+
&redis.FTSearchOptions{
243
+
Params: map[string]interface{}{
244
+
"bike": "POINT(-0.1278 51.5074)",
245
+
},
246
+
DialectVersion: 3,
247
+
},
248
+
).Result()
249
+
```
250
+
You can find further details in the [query dialect documentation](https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/dialects/).
251
+
252
+
## Contributing
253
+
We welcome contributions to the go-redis library! If you have a bug fix, feature request, or improvement, please open an issue or pull request on GitHub.
254
+
We appreciate your help in making go-redis better for everyone.
255
+
If you are interested in contributing to the go-redis library, please check out our [contributing guidelines](CONTRIBUTING.md) for more information on how to get started.
221
256
222
257
## Look and feel
223
258
@@ -297,6 +332,14 @@ REDIS_PORT=9999 go test <your options>
297
332
298
333
## Contributors
299
334
335
+
> The go-redis project was originally initiated by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace).
336
+
> Uptrace is an open-source APM tool that supports distributed tracing, metrics, and logs. You can
337
+
> use it to monitor applications and set up automatic alerts to receive notifications via email,
338
+
> Slack, Telegram, and others.
339
+
>
340
+
> See [OpenTelemetry](https://github.com/redis/go-redis/tree/master/example/otel) example which
341
+
> demonstrates how you can use Uptrace to monitor go-redis.
0 commit comments