Provides an abstract factory for instantiating named \CouchbaseBucket objects.
composer require webpt/zend-couchbase-module
The following snippet will produce a \CouchbaseBucket object for the localhost
cluster default
bucket:
$bucket = $serviceLocator->get('couchbase.localhost.default');
See the module configuration for a functional sample configuration which can be copied into differently named and configured clusters and buckets. Cluster configuration can be shared by buckets, but only the instantiated buckets will be shared in the service manager.
composer update && composer test:units
This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.