Skip to content

Commit

Permalink
Merge branch 'master' into fix-2736
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrylan authored Oct 23, 2023
2 parents c363d9e + af4872c commit a74f995
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
> use it to monitor applications and set up automatic alerts to receive notifications via email,
> Slack, Telegram, and others.
>
> See [OpenTelemetry](master/example/otel) example which demonstrates how you can use Uptrace to monitor
> go-redis.
> See [OpenTelemetry](https://github.com/redis/go-redis/tree/master/example/otel) example which
> demonstrates how you can use Uptrace to monitor go-redis.
## Documentation

Expand Down Expand Up @@ -107,7 +107,8 @@ func ExampleClient() {
}
```

The above can be modified to specify the version of the RESP protocol by adding the `protocol` option to the `Options` struct:
The above can be modified to specify the version of the RESP protocol by adding the `protocol`
option to the `Options` struct:

```go
rdb := redis.NewClient(&redis.Options{
Expand All @@ -121,7 +122,10 @@ The above can be modified to specify the version of the RESP protocol by adding

### Connecting via a redis url

go-redis also supports connecting via the [redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt). The example below demonstrates how the connection can easily be configured using a string, adhering to this specification.
go-redis also supports connecting via the
[redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt).
The example below demonstrates how the connection can easily be configured using a string, adhering
to this specification.

```go
import (
Expand Down Expand Up @@ -208,7 +212,8 @@ Lastly, run:
go test
```
Another option is to run your specific tests with an already running redis. The example below, tests against a redis running on port 9999.:
Another option is to run your specific tests with an already running redis. The example below, tests
against a redis running on port 9999.:
```shell
REDIS_PORT=9999 go test <your options>
Expand Down

0 comments on commit a74f995

Please sign in to comment.