Add redis
This commit is contained in:
10
db_test.go
10
db_test.go
@@ -58,6 +58,12 @@ func TestImplementations(t *testing.T) {
|
||||
cases = append(cases, cacheFile)
|
||||
}
|
||||
|
||||
if redis, err := NewRedis("localhost:6379", "", ""); err != nil {
|
||||
t.Errorf("cannot make redis: %v", err)
|
||||
} else {
|
||||
cases = append(cases, redis)
|
||||
}
|
||||
|
||||
if bolt, err := NewBolt(path.Join(dir, "bolt")); err != nil {
|
||||
t.Errorf("cannot make bolt: %v", err)
|
||||
} else {
|
||||
@@ -155,6 +161,10 @@ func TestToFromString(t *testing.T) {
|
||||
key: "map",
|
||||
t: MAP,
|
||||
},
|
||||
{
|
||||
key: "redis",
|
||||
t: REDIS,
|
||||
},
|
||||
{
|
||||
key: "minio",
|
||||
t: MINIO,
|
||||
|
||||
Reference in New Issue
Block a user