CouchbaseCluster

Represents a cluster connection.

package

Couchbase

Methods

Creates a connection to a cluster.

__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

Arguments

$dsn

string

A cluster DSn to connect with.

$username

string

The username for the cluster.

$password

string

The password for the cluster.

Constructs a connection to a bucket.

openBucket(string $name = 'default', string $password = '') : \CouchbaseBucket
throws
see \CouchbaseBucket

CouchbaseBucket

Arguments

$name

string

The name of the bucket to open.

$password

string

The bucket password to authenticate with.

Response

\CouchbaseBucket

A bucket object.

Creates a manager allowing the management of a Couchbase cluster.

manager(mixed $username, mixed $password) : \CouchbaseClusterManager

Arguments

$username

mixed

The administration username.

$password

mixed

The administration password.

Response

\CouchbaseClusterManager