Skip to content

Commit 0eb298b

Browse files
committed
feat: move to valkey-io
Signed-off-by: Rueian <[email protected]>
1 parent 22309aa commit 0eb298b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+112
-112
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# valkey-go
22

3-
[![Go Reference](https://pkg.go.dev/badge/github.com/rueian/valkey-go.svg)](https://pkg.go.dev/github.com/rueian/valkey-go)
4-
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/rueian/valkey-go/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/rueian/valkey-go/tree/main)
5-
[![Go Report Card](https://goreportcard.com/badge/github.com/rueian/valkey-go)](https://goreportcard.com/report/github.com/rueian/valkey-go)
6-
[![codecov](https://codecov.io/gh/rueian/valkey-go/branch/main/graph/badge.svg?token=934zeTPaTc)](https://codecov.io/gh/rueian/valkey-go)
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/valkey-io/valkey-go.svg)](https://pkg.go.dev/github.com/valkey-io/valkey-go)
4+
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/valkey-io/valkey-go/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/valkey-io/valkey-go/tree/main)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/valkey-io/valkey-go)](https://goreportcard.com/report/github.com/valkey-io/valkey-go)
6+
[![codecov](https://codecov.io/gh/valkey-io/valkey-go/branch/main/graph/badge.svg?token=934zeTPaTc)](https://codecov.io/gh/valkey-io/valkey-go)
77

88
A fast Golang Valkey client that does auto pipelining and supports server-assisted client-side caching.
99

@@ -31,7 +31,7 @@ package main
3131

3232
import (
3333
"context"
34-
"github.com/rueian/valkey-go"
34+
"github.com/valkey-io/valkey-go"
3535
)
3636

3737
func main() {
@@ -49,7 +49,7 @@ func main() {
4949
}
5050
```
5151

52-
Checkout more examples: [Command Response Cheatsheet](https://github.com/rueian/valkey-go#command-response-cheatsheet)
52+
Checkout more examples: [Command Response Cheatsheet](https://github.com/valkey-io/valkey-go#command-response-cheatsheet)
5353

5454
## Developer Friendly Command Builder
5555

@@ -181,7 +181,7 @@ Otherwise, their client-side cache will not be invalidated by valkey.
181181
### Client Side Caching with Cache Aside Pattern
182182

183183
Cache-Aside is a widely used caching strategy.
184-
[valkeyaside](https://github.com/rueian/valkey-go/blob/main/valkeyaside/README.md) can help you cache data into your client-side cache backed by Valkey. For example:
184+
[valkeyaside](https://github.com/valkey-io/valkey-go/blob/main/valkeyaside/README.md) can help you cache data into your client-side cache backed by Valkey. For example:
185185

186186
```go
187187
client, err := valkeyaside.NewClient(valkeyaside.ClientOption{
@@ -200,7 +200,7 @@ val, err := client.Get(context.Background(), time.Minute, "mykey", func(ctx cont
200200
// ...
201201
```
202202

203-
Please refer to the full example at [valkeyaside](https://github.com/rueian/valkey-go/blob/main/valkeyaside/README.md).
203+
Please refer to the full example at [valkeyaside](https://github.com/valkey-io/valkey-go/blob/main/valkeyaside/README.md).
204204

205205
### Disable Client Side Caching
206206

@@ -539,7 +539,7 @@ if err := valkey.DecodeSliceOfJSON(client.Do(ctx, client.B().Mget().Key("user1")
539539

540540
## Contributing
541541

542-
Contributions are welcome, including [issues](https://github.com/rueian/valkey-go/issues), [pull requests](https://github.com/rueian/valkey-go/pulls), and [discussions](https://github.com/rueian/valkey-go/discussions).
542+
Contributions are welcome, including [issues](https://github.com/valkey-io/valkey-go/issues), [pull requests](https://github.com/valkey-io/valkey-go/pulls), and [discussions](https://github.com/valkey-io/valkey-go/discussions).
543543
Contributions mean a lot to us and help us improve this library and the community!
544544

545545
### Generate command builders

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync/atomic"
77
"time"
88

9-
"github.com/rueian/valkey-go/internal/cmds"
9+
"github.com/valkey-io/valkey-go/internal/cmds"
1010
)
1111

1212
type singleClient struct {

cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"sync/atomic"
1414
"time"
1515

16-
"github.com/rueian/valkey-go/internal/cmds"
17-
"github.com/rueian/valkey-go/internal/util"
16+
"github.com/valkey-io/valkey-go/internal/cmds"
17+
"github.com/valkey-io/valkey-go/internal/util"
1818
)
1919

2020
// ErrNoSlot indicates that there is no valkey node owns the key slot.

cmds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package valkey
22

3-
import "github.com/rueian/valkey-go/internal/cmds"
3+
import "github.com/valkey-io/valkey-go/internal/cmds"
44

55
// Builder represents a command builder. It should only be created from the client.B() method.
66
type Builder = cmds.Builder

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/rueian/valkey-go
1+
module github.com/valkey-io/valkey-go
22

33
go 1.20
44

helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"errors"
66
"time"
77

8-
intl "github.com/rueian/valkey-go/internal/cmds"
9-
"github.com/rueian/valkey-go/internal/util"
8+
intl "github.com/valkey-io/valkey-go/internal/cmds"
9+
"github.com/valkey-io/valkey-go/internal/util"
1010
)
1111

1212
type mgetcachecmds struct {

lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99
"unsafe"
1010

11-
"github.com/rueian/valkey-go/internal/cmds"
11+
"github.com/valkey-io/valkey-go/internal/cmds"
1212
)
1313

1414
const (

lru_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/rueian/valkey-go/internal/cmds"
12+
"github.com/valkey-io/valkey-go/internal/cmds"
1313
)
1414

1515
const PTTL = 50

lua.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"runtime"
88
"sync/atomic"
99

10-
"github.com/rueian/valkey-go/internal/util"
10+
"github.com/valkey-io/valkey-go/internal/util"
1111
)
1212

1313
// NewLuaScript creates a Lua instance whose Lua.Exec uses EVALSHA and EVAL.

lua_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/rueian/valkey-go/internal/cmds"
13+
"github.com/valkey-io/valkey-go/internal/cmds"
1414
)
1515

1616
func TestNewLuaScriptOnePass(t *testing.T) {

message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010
"unsafe"
1111

12-
"github.com/rueian/valkey-go/internal/util"
12+
"github.com/valkey-io/valkey-go/internal/util"
1313
)
1414

1515
const messageStructSize = int(unsafe.Sizeof(ValkeyMessage{}))

mock/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"testing"
1818

1919
"go.uber.org/mock/gomock"
20-
"github.com/rueian/valkey-go/mock"
20+
"github.com/valkey-io/valkey-go/mock"
2121
)
2222

2323
func TestWithValkey(t *testing.T) {
@@ -53,7 +53,7 @@ import (
5353
"testing"
5454

5555
"go.uber.org/mock/gomock"
56-
"github.com/rueian/valkey-go/mock"
56+
"github.com/valkey-io/valkey-go/mock"
5757
)
5858

5959
func TestWithValkeyReceive(t *testing.T) {

mock/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"time"
77

8-
"github.com/rueian/valkey-go"
9-
"github.com/rueian/valkey-go/internal/cmds"
8+
"github.com/valkey-io/valkey-go"
9+
"github.com/valkey-io/valkey-go/internal/cmds"
1010
"go.uber.org/mock/gomock"
1111
)
1212

mock/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/rueian/valkey-go"
10+
"github.com/valkey-io/valkey-go"
1111
"go.uber.org/mock/gomock"
1212
)
1313

mock/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
module github.com/rueian/valkey-go/mock
1+
module github.com/valkey-io/valkey-go/mock
22

33
go 1.20
44

5-
replace github.com/rueian/valkey-go => ../
5+
replace github.com/valkey-io/valkey-go => ../
66

77
require (
8-
github.com/rueian/valkey-go v1.0.35
8+
github.com/valkey-io/valkey-go v1.0.35
99
go.uber.org/mock v0.3.0
1010
)
1111

mock/match.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/rueian/valkey-go"
7+
"github.com/valkey-io/valkey-go"
88
"go.uber.org/mock/gomock"
99
)
1010

mock/match_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/rueian/valkey-go"
9-
"github.com/rueian/valkey-go/internal/cmds"
8+
"github.com/valkey-io/valkey-go"
9+
"github.com/valkey-io/valkey-go/internal/cmds"
1010
"go.uber.org/mock/gomock"
1111
)
1212

mock/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212
"unsafe"
1313

14-
"github.com/rueian/valkey-go"
14+
"github.com/valkey-io/valkey-go"
1515
)
1616

1717
func Result(val valkey.ValkeyMessage) valkey.ValkeyResult {

mock/result_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/rueian/valkey-go"
11+
"github.com/valkey-io/valkey-go"
1212
)
1313

1414
func TestValkeyString(t *testing.T) {

mux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"sync/atomic"
1010
"time"
1111

12-
"github.com/rueian/valkey-go/internal/cmds"
13-
"github.com/rueian/valkey-go/internal/util"
12+
"github.com/valkey-io/valkey-go/internal/cmds"
13+
"github.com/valkey-io/valkey-go/internal/util"
1414
)
1515

1616
type connFn func(dst string, opt *ClientOption) conn

mux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"testing"
1414
"time"
1515

16-
"github.com/rueian/valkey-go/internal/cmds"
16+
"github.com/valkey-io/valkey-go/internal/cmds"
1717
)
1818

1919
func setupMux(wires []*mockWire) (conn *mux, checkClean func(t *testing.T)) {

om/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"fmt"
1111
"time"
1212

13-
"github.com/rueian/valkey-go"
14-
"github.com/rueian/valkey-go/om"
13+
"github.com/valkey-io/valkey-go"
14+
"github.com/valkey-io/valkey-go/om"
1515
)
1616

1717
type Example struct {

om/conv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strconv"
88
"unsafe"
99

10-
"github.com/rueian/valkey-go"
10+
"github.com/valkey-io/valkey-go"
1111
)
1212

1313
func newHashConvFactory(t reflect.Type, schema schema) *hashConvFactory {

om/cursor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"errors"
66

7-
"github.com/rueian/valkey-go"
7+
"github.com/valkey-io/valkey-go"
88
)
99

1010
var EndOfCursor = errors.New("end of cursor")

om/cursor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"testing"
77

8-
"github.com/rueian/valkey-go"
8+
"github.com/valkey-io/valkey-go"
99
)
1010

1111
type Book struct {

om/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module github.com/rueian/valkey-go/om
1+
module github.com/valkey-io/valkey-go/om
22

33
go 1.20
44

5-
replace github.com/rueian/valkey-go => ../
5+
replace github.com/valkey-io/valkey-go => ../
66

77
require (
88
github.com/oklog/ulid/v2 v2.1.0
9-
github.com/rueian/valkey-go v1.0.35
9+
github.com/valkey-io/valkey-go v1.0.35
1010
)
1111

1212
require golang.org/x/sys v0.19.0 // indirect

om/hash.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77
"time"
88

9-
"github.com/rueian/valkey-go"
9+
"github.com/valkey-io/valkey-go"
1010
)
1111

1212
// NewHashRepository creates an HashRepository.

om/hash_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/oklog/ulid/v2"
13-
"github.com/rueian/valkey-go"
13+
"github.com/valkey-io/valkey-go"
1414
)
1515

1616
type HashTestStruct struct {

om/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/rueian/valkey-go"
11+
"github.com/valkey-io/valkey-go"
1212
)
1313

1414
// NewJSONRepository creates an JSONRepository.

om/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/oklog/ulid/v2"
10-
"github.com/rueian/valkey-go"
10+
"github.com/valkey-io/valkey-go"
1111
)
1212

1313
type JSONTestStruct struct {

om/repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"errors"
66
"time"
77

8-
"github.com/rueian/valkey-go"
9-
"github.com/rueian/valkey-go/internal/cmds"
8+
"github.com/valkey-io/valkey-go"
9+
"github.com/valkey-io/valkey-go/internal/cmds"
1010
)
1111

1212
type (

om/repo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package om
33
import (
44
"testing"
55

6-
"github.com/rueian/valkey-go"
6+
"github.com/valkey-io/valkey-go"
77
)
88

99
func setup(t *testing.T) valkey.Client {

pipe.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"sync/atomic"
1717
"time"
1818

19-
"github.com/rueian/valkey-go/internal/cmds"
20-
"github.com/rueian/valkey-go/internal/util"
19+
"github.com/valkey-io/valkey-go/internal/cmds"
20+
"github.com/valkey-io/valkey-go/internal/util"
2121
)
2222

2323
const LibName = "valkey"

pipe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"testing"
1717
"time"
1818

19-
"github.com/rueian/valkey-go/internal/cmds"
19+
"github.com/valkey-io/valkey-go/internal/cmds"
2020
)
2121

2222
type valkeyExpect struct {

ring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/rueian/valkey-go/internal/cmds"
9+
"github.com/valkey-io/valkey-go/internal/cmds"
1010
)
1111

1212
//gocyclo:ignore

0 commit comments

Comments
 (0)