implement memcache and memcacheCluster
This commit is contained in:
@@ -110,6 +110,12 @@ func TestImplementations(t *testing.T) {
|
||||
cases = append(cases, memcache)
|
||||
}
|
||||
|
||||
if memcacheCluster, err := NewMemcacheCluster("localhost:11211"); err != nil {
|
||||
t.Errorf("cannot make memcacheCluster: %v", err)
|
||||
} else {
|
||||
cases = append(cases, memcacheCluster)
|
||||
}
|
||||
|
||||
validKey := "key"
|
||||
validValue := []byte("value")
|
||||
|
||||
@@ -122,7 +128,7 @@ func TestImplementations(t *testing.T) {
|
||||
} else if !bytes.Equal(v, validValue) {
|
||||
t.Errorf("wrong get %T: %q vs %q", db, v, validValue)
|
||||
} else {
|
||||
t.Logf("%18T GET: %s", db, v)
|
||||
t.Logf("%25T GET: %s", db, v)
|
||||
}
|
||||
if err := db.Close(); err != nil {
|
||||
t.Errorf("cannot close %T: %v", db, err)
|
||||
|
||||
Reference in New Issue
Block a user