__construct()
__construct(string $connstr)
Create cluster object
Parameters
string | $connstr | connection string |
Represents a Couchbase Server Cluster.
It is an entry point to the library, and in charge of opening connections to the Buckets. In addition it can instantiate \Couchbase\ClusterManager to peform cluster-wide operations.
openBucket(string $name = "default", string $password = "") : \Couchbase\Bucket
Open connection to the Couchbase bucket
string | $name | Name of the bucket. |
string | $password | Password of the bucket to override authenticator. |
manager(string $username = null, string $password = null) : \Couchbase\ClusterManager
Open management connection to the Couchbase cluster.
string | $username | Name of the administrator to override authenticator or NULL. |
string | $password | Password of the administrator to override authenticator or NULL. |
authenticate(\Couchbase\Authenticator $authenticator) : null
Associate authenticator with Cluster
\Couchbase\Authenticator | $authenticator |