ColdBox Module
The CFCouchbase SDK is already a ColdBox Module. So if you are building a ColdBox MVC application you can install the SDK with CommandBox via: box install cfcouchbase
. The SDK will be installed in your modules
directory, create a mapping called cfcouchbase
for you, manage all SDK instances and create all the WireBox binders for you.
WireBox Mappings
The following objects are already mapped in the module edition and can be injected anywhere in your ColdBox application.
CouchbaseConfig@cfcouchbase
maps tocfcouchbase.config.CouchbaseConfig
CouchbaseClient@cfcouchbase
maps tocfcouchbase.CouchbaseClient
ColdBox Settings
You can configure the SDK by creating a couchbase
structure in your ColdBox.cfc configuration file. This structure can contain any setting from the
CouchbaseConfigobject and ColdBox will configure the
CouchbaseClient` for you.
Last updated