2015-03-16 21:04 阅读 66

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")

err = b.Set("somekey", 0, map[string]interface{}{"x": 1})
  mf(err, "set")
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    duanji2002 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.

    点赞 评论 复制链接分享