\CouchbaseClusterManager

Provides management capabilities for a Couchbase Server Cluster

Summary

Methods
Properties
Constants
listBuckets()
createBucket()
removeBucket()
info()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

listBuckets()

listBuckets() : array

Lists all buckets on this cluster.

Returns

array

createBucket()

createBucket(string  $name, array  $options = array()) 

Creates new bucket

Parameters

string $name

Name of the bucket

array $options

Bucket options

  • "authType" (default: "sasl") type of the bucket authentication
  • "bucketType" (default: "couchbase") type of the bucket
  • "ramQuotaMB" (default: 100) memory quota of the bucket
  • "replicaNumber" (default: 1) number of replicas.

removeBucket()

removeBucket(string  $name) 

Removes a bucket identified by its name.

Parameters

string $name

name of the bucket

info()

info() : array

Provides information about the cluster.

Returns an associative array of status information as seen on the cluster. The exact structure of the returned data can be seen in the Couchbase Manual by looking at the cluster /info endpoint.

Returns

array