我已经安装了 couchbase 1.8 并使用了 couchbase .net 客户端库。是否按照以下文档中给出的所有配置,但 client.store 总是失败并返回 false。
<configSections>
<section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
</configSections>
<couchbase>
<servers bucket="default" bucketPassword="">
<add uri="http://xx.xx.xx.xx:8091/pools/default"/>
</servers>
</couchbase>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
CouchbaseClient client = new CouchbaseClient(); //this creates a not null client object
bool result = client.store(Storemode.Add,"test","Couchbase test"); // this returns false always
string str = client.Get("test") as string; // this returns null always
我可以远程登录到 8091 端口。telnet 进入一个空白屏幕,键入任何来自 telnet 会话的键,说客户端发送了一个错误的请求。我猜这是正确的行为,但不知何故商店失败了。我在 couchbase 默认数据桶上看不到任何活动。
任何帮助表示赞赏。