duanla1996 2015-03-16 21:04
浏览 69
已采纳

Golang Couchbase集成在设置/获取时引发错误

Implementing https://github.com/couchbase/go-couchbase

However - no matter what I do - with various types of connections - I get errors when setting/getting keys.

vbmap smaller than vbucket list: 18119 vs. []

Code Example below (have tried many variations)

b, err := couchbase.GetBucket("http://somebucket:somepassword@myserver:8091/",
       "default", "somebucket")
mf(err,"con")

err = b.Set("somekey", 0, map[string]interface{}{"x": 1})
  mf(err, "set")
  • 写回答

1条回答 默认 最新

  • duanji2002 2015-03-18 10:07
    关注

    You are probably trying to connect to a memcached bucket. go-couchbase doesn't support buckets of type memcached.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?