Missing enableN1q1 method


#1

I installed the php couchbase-2.1.0 module via pecl.

The underlying library is libcouchbase-2.5.7 built from source.

I am using the following code:

$nodes = [ … ]; // 10.x.y.z addresses
$cluster = new CouchbaseCluster(“couchbase://”.implode(",", $nodes));
$junk = $cluster->openBucket(“junk”);
$junk->enableN1q1(array_map(function($x) { return “http://:8093$x”; }, $nodes));

This results in:

PHP Fatal error: Call to undefined method CouchbaseBucket::enableN1q1() in /opt/…/test.php on line 20

Is there something that needs to be done to enable this method?


#2

Never mind. I’m operating from a printed document that does not disambiguate the one and the lowercase “L” properly. Unfortunate class name though.


#3