Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
JyotinderSingh committed Jul 6, 2024
1 parent 0d08d06 commit 0ca5f8b
Show file tree
Hide file tree
Showing 87 changed files with 141 additions and 136 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Redis client for Go

[![build workflow](https://github.com/redis/go-redis/actions/workflows/build.yml/badge.svg)](https://github.com/redis/go-redis/actions)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/redis/go-redis/v9)](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/dicedb/go-dice)](https://pkg.go.dev/github.com/dicedb/go-dice?tab=doc)
[![Documentation](https://img.shields.io/badge/redis-documentation-informational)](https://redis.uptrace.dev/)
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)

Expand Down Expand Up @@ -36,8 +36,8 @@

- [Discussions](https://github.com/redis/go-redis/discussions)
- [Chat](https://discord.gg/rWtp5Aj)
- [Reference](https://pkg.go.dev/github.com/redis/go-redis/v9)
- [Examples](https://pkg.go.dev/github.com/redis/go-redis/v9#pkg-examples)
- [Reference](https://pkg.go.dev/github.com/dicedb/go-dice)
- [Examples](https://pkg.go.dev/github.com/dicedb/go-dice#pkg-examples)

## Ecosystem

Expand Down Expand Up @@ -75,7 +75,7 @@ go mod init github.com/my/repo
Then install go-redis/**v9**:

```shell
go get github.com/redis/go-redis/v9
go get github.com/dicedb/go-dice
```

## Quickstart
Expand All @@ -85,7 +85,7 @@ import (
"context"
"fmt"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

var ctx = context.Background()
Expand Down Expand Up @@ -143,7 +143,7 @@ to this specification.

```go
import (
"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func ExampleClient() *redis.Client {
Expand All @@ -158,18 +158,23 @@ func ExampleClient() *redis.Client {

```


### Advanced Configuration

go-redis supports extending the client identification phase to allow projects to send their own custom client identification.
go-redis supports extending the client identification phase to allow projects to send their own
custom client identification.

#### Default Client Identification

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.
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.

#### Disabling Identity Verification

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.
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.

To disable verification, set the `DisableIndentity` option to `true` in the Redis client options:

Expand Down
2 changes: 1 addition & 1 deletion bench_decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/redis/go-redis/v9/internal/proto"
"github.com/dicedb/go-dice/internal/proto"
)

var ctx = context.TODO()
Expand Down
2 changes: 1 addition & 1 deletion bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func benchmarkRedisClient(ctx context.Context, poolSize int) *redis.Client {
Expand Down
2 changes: 1 addition & 1 deletion bitmap_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package redis_test
import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

type bitCountExpected struct {
Expand Down
8 changes: 4 additions & 4 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync"
"time"

"github.com/redis/go-redis/v9/internal"
"github.com/redis/go-redis/v9/internal/hscan"
"github.com/redis/go-redis/v9/internal/proto"
"github.com/redis/go-redis/v9/internal/util"
"github.com/dicedb/go-dice/internal"
"github.com/dicedb/go-dice/internal/hscan"
"github.com/dicedb/go-dice/internal/proto"
"github.com/dicedb/go-dice/internal/util"
)

type Cmder interface {
Expand Down
2 changes: 1 addition & 1 deletion command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"time"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"

. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
Expand Down
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/redis/go-redis/v9/internal"
"github.com/dicedb/go-dice/internal"
)

// KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0,
Expand Down
4 changes: 2 additions & 2 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"

"github.com/redis/go-redis/v9"
"github.com/redis/go-redis/v9/internal/proto"
"github.com/dicedb/go-dice"
"github.com/dicedb/go-dice/internal/proto"
)

type TimeValue struct {
Expand Down
2 changes: 1 addition & 1 deletion doctests/lpush_lrange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"fmt"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func ExampleClient_LPush_and_lrange() {
Expand Down
2 changes: 1 addition & 1 deletion doctests/set_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"fmt"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func ExampleClient_Set_and_get() {
Expand Down
6 changes: 3 additions & 3 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net"
"strings"

"github.com/redis/go-redis/v9/internal"
"github.com/redis/go-redis/v9/internal/pool"
"github.com/redis/go-redis/v9/internal/proto"
"github.com/dicedb/go-dice/internal"
"github.com/dicedb/go-dice/internal/pool"
"github.com/dicedb/go-dice/internal/proto"
)

// ErrClosed performs any operation on the closed client will return this error.
Expand Down
4 changes: 2 additions & 2 deletions example/del-keys-without-ttl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module github.com/redis/go-redis/example/del-keys-without-ttl

go 1.18

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require (
github.com/redis/go-redis/v9 v9.5.3
github.com/dicedb/go-dice v9.5.3
go.uber.org/zap v1.24.0
)

Expand Down
2 changes: 1 addition & 1 deletion example/del-keys-without-ttl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"go.uber.org/zap"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions example/hll/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module github.com/redis/go-redis/example/hll

go 1.18

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require github.com/redis/go-redis/v9 v9.5.3
require github.com/dicedb/go-dice v9.5.3

require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion example/hll/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions example/lua-scripting/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module github.com/redis/go-redis/example/lua-scripting

go 1.18

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require github.com/redis/go-redis/v9 v9.5.3
require github.com/dicedb/go-dice v9.5.3

require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion example/lua-scripting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion example/otel/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/codes"

"github.com/dicedb/go-dice"
"github.com/redis/go-redis/extra/redisotel/v9"
"github.com/redis/go-redis/v9"
)

var tracer = otel.Tracer("github.com/redis/go-redis/example/otel")
Expand Down
4 changes: 2 additions & 2 deletions example/otel/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module github.com/redis/go-redis/example/otel

go 1.19

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel

replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd

require (
github.com/redis/go-redis/extra/redisotel/v9 v9.5.3
github.com/redis/go-redis/v9 v9.5.3
github.com/dicedb/go-dice v9.5.3
github.com/uptrace/uptrace-go v1.21.0
go.opentelemetry.io/otel v1.22.0
)
Expand Down
4 changes: 2 additions & 2 deletions example/redis-bloom/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module github.com/redis/go-redis/example/redis-bloom

go 1.18

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require github.com/redis/go-redis/v9 v9.5.3
require github.com/dicedb/go-dice v9.5.3

require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion example/redis-bloom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"math/rand"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions example/scan-struct/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module github.com/redis/go-redis/example/scan-struct

go 1.18

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require (
github.com/davecgh/go-spew v1.1.1
github.com/redis/go-redis/v9 v9.5.3
github.com/dicedb/go-dice v9.5.3
)

require (
Expand Down
2 changes: 1 addition & 1 deletion example/scan-struct/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/davecgh/go-spew/spew"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

type Model struct {
Expand Down
2 changes: 1 addition & 1 deletion example_instrumentation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

type redisHook struct{}
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net"
"strings"

"github.com/redis/go-redis/v9/internal"
"github.com/redis/go-redis/v9/internal/hashtag"
"github.com/redis/go-redis/v9/internal/pool"
"github.com/dicedb/go-dice/internal"
"github.com/dicedb/go-dice/internal/hashtag"
"github.com/dicedb/go-dice/internal/pool"
)

func (c *baseClient) Pool() pool.Pooler {
Expand Down
4 changes: 2 additions & 2 deletions extra/rediscensus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module github.com/redis/go-redis/extra/rediscensus/v9

go 1.19

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd

require (
github.com/redis/go-redis/extra/rediscmd/v9 v9.5.3
github.com/redis/go-redis/v9 v9.5.3
github.com/dicedb/go-dice v9.5.3
go.opencensus.io v0.24.0
)

Expand Down
2 changes: 1 addition & 1 deletion extra/rediscensus/rediscensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"go.opencensus.io/trace"

"github.com/dicedb/go-dice"
"github.com/redis/go-redis/extra/rediscmd/v9"
"github.com/redis/go-redis/v9"
)

type TracingHook struct{}
Expand Down
4 changes: 2 additions & 2 deletions extra/rediscmd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ module github.com/redis/go-redis/extra/rediscmd/v9

go 1.19

replace github.com/redis/go-redis/v9 => ../..
replace github.com/dicedb/go-dice => ../..

require (
github.com/bsm/ginkgo/v2 v2.12.0
github.com/bsm/gomega v1.27.10
github.com/redis/go-redis/v9 v9.5.3
github.com/dicedb/go-dice v9.5.3
)

require (
Expand Down
2 changes: 1 addition & 1 deletion extra/rediscmd/rediscmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/redis/go-redis/v9"
"github.com/dicedb/go-dice"
)

func CmdString(cmd redis.Cmder) string {
Expand Down
Loading

0 comments on commit 0ca5f8b

Please sign in to comment.