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 the official Redis client library for the Go programming language. It offers a straightforward interface for interacting with Redis servers.
10
16
@@ -44,7 +50,7 @@ in the `go.mod` to `go 1.24` in one of the next releases.
The streaming credentials provider allows for dynamic credential updates during the connection lifetime. This is particularly useful for managed identity services and token-based authentication.
135
147
136
148
```go
137
-
rdb:= redis.NewClient(&redis.Options{
138
-
Addr: "localhost:6379",
139
-
Password: "", // no password set
140
-
DB: 0, // use default DB
141
-
Protocol: 3, // specify 2 for RESP 2 or 3 for RESP 3
**Note:** The streaming credentials provider can be used with [go-redis-entraid](https://github.com/redis/go-redis-entraid) to enable Entra ID (formerly Azure AD) authentication. This allows for seamless integration with Azure's managed identity services and token-based authentication.
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.
217
346
218
-
## Contributing
347
+
**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.
348
+
For example:
349
+
```
350
+
res2, err:= rdb.FTSearchWithArgs(ctx,
351
+
"idx:bicycle",
352
+
"@pickup_zone:[CONTAINS $bike]",
353
+
&redis.FTSearchOptions{
354
+
Params: map[string]interface{}{
355
+
"bike": "POINT(-0.1278 51.5074)",
356
+
},
357
+
DialectVersion: 3,
358
+
},
359
+
).Result()
360
+
```
361
+
You can find further details in the [query dialect documentation](https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/dialects/).
219
362
220
-
Please see [out contributing guidelines](CONTRIBUTING.md) to help us improve this library!
363
+
## Contributing
364
+
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.
365
+
We appreciate your help in making go-redis better for everyone.
366
+
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.
0 commit comments