-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: redisgo rename to redis (#518)
Co-authored-by: papa-hexuan <[email protected]>
- Loading branch information
1 parent
f0f1f7b
commit e665921
Showing
7 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package redisgo | ||
package redis | ||
|
||
import ( | ||
"bytes" | ||
|
@@ -13,18 +13,18 @@ import ( | |
) | ||
|
||
func TestStdConfig(t *testing.T) { | ||
assert.Equal(t, constant.ConfigKey("redisgo", "test", "stub"), "jupiter.redisgo.test.stub") | ||
assert.Equal(t, constant.ConfigKey("redis", "test", "stub"), "jupiter.redis.test.stub") | ||
|
||
var configStr = ` | ||
[jupiter.redisgo] | ||
[jupiter.redisgo.test.stub] | ||
[jupiter.redis] | ||
[jupiter.redis.test.stub] | ||
dialTimeout="2s" | ||
readTimeout="5s" | ||
idleTimeout="60s" | ||
username="" | ||
password="123" | ||
[jupiter.redisgo.test.cluster] | ||
[jupiter.redis.test.cluster] | ||
dialTimeout="2s" | ||
readTimeout="5s" | ||
idleTimeout="60s" | ||
|
@@ -46,15 +46,15 @@ func TestStdConfig(t *testing.T) { | |
|
||
func TestConfig(t *testing.T) { | ||
var configStr = ` | ||
[jupiter.redisgo] | ||
[jupiter.redisgo.test] | ||
[jupiter.redisgo.test.stub] | ||
[jupiter.redis] | ||
[jupiter.redis.test] | ||
[jupiter.redis.test.stub] | ||
dialTimeout="2s" | ||
readTimeout="5s" | ||
idleTimeout="60s" | ||
[jupiter.redisgo.test.stub.master] | ||
[jupiter.redis.test.stub.master] | ||
addr="redis://:user111:[email protected]:6379" | ||
[jupiter.redisgo.test.stub.slaves] | ||
[jupiter.redis.test.stub.slaves] | ||
addr=[ | ||
"redis://:user111:[email protected]:6379", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package redisgo | ||
package redis | ||
|
||
import ( | ||
"net/http" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkg/client/redisgo/interceptor_test.go → pkg/client/redis/interceptor_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package redisgo | ||
package redis | ||
|
||
import ( | ||
"context" | ||
|