Cluster
class Cluster (View source)
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.
Methods
__construct(string $connstr)
Create cluster object
openBucket(string $name = "default", string $password = "")
Open connection to the Couchbase bucket
manager(string $username = null, string $password = null)
Open management connection to the Couchbase cluster.
null
null
authenticateAs(string $username, string $password)
Create \Couchbase\PasswordAuthenticator from given credentials and associate it with Cluster
Details
__construct(string $connstr)
Create cluster object
Bucket
openBucket(string $name = "default", string $password = "")
Open connection to the Couchbase bucket
ClusterManager
manager(string $username = null, string $password = null)
Open management connection to the Couchbase cluster.
null
authenticate(Authenticator $authenticator)
Associate authenticator with Cluster
null
authenticateAs(string $username, string $password)
Create \Couchbase\PasswordAuthenticator from given credentials and associate it with Cluster