Add redis

This commit is contained in:
Bel LaPointe
2019-06-19 12:02:07 -06:00
parent 18096443d7
commit 6ac77d247e
5 changed files with 93 additions and 11 deletions

View File

@@ -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,