Represents a cluster connection.
package |
Couchbase |
---|
__construct(string $dsn = 'http://127.0.0.1/', string $username = '', string $password = '')
Creates a CouchbaseCluster object and begins the bootstrapping process necessary for communications with the Couchbase Server.
throws | |
---|---|
string
A cluster DSn to connect with.
string
The username for the cluster.
string
The password for the cluster.
openBucket(string $name = 'default', string $password = '') : \CouchbaseBucket
throws | |
---|---|
see |
\CouchbaseBucket
CouchbaseBucket |
string
The name of the bucket to open.
string
The bucket password to authenticate with.
\CouchbaseBucket
A bucket object.
manager(mixed $username, mixed $password) : \CouchbaseClusterManager
mixed
The administration username.
mixed
The administration password.
\CouchbaseClusterManager