我在openstack下安装了Couchebase。当我向couchebase添加记录时,出现错误。 “启用连接节点” 只有当我们在openstack下安装couchebase时才会这样,否则下面的代码工作正常。
var configuration = new Couchbase.Configuration.CouchbaseClientConfiguration();
configuration.Bucket = "BucketName";
configuration.Urls.Add(new Uri(couchUrl));
Couchbase.CouchbaseClient couchClient = couchClient = new Couchbase.CouchbaseClient(configuration);
TestConnectivity testObj = new TestConnectivity();
var result = couchClient.ExecuteStore(Enyim.Caching.Memcached.StoreMode.Set, "TestObject123",
JsonConvert.SerializeObject(testObj));`