CFCouchbase SDK
  • Introduction
  • What's New With 2.2.0
  • What's New With 2.0.0
  • About This Book
  • Authors
  • Overview
  • Installation
    • ColdBox Module
    • Traditional Apps
  • Configuration
    • Settings
    • Structure
    • Summary
  • Usage
    • Storing Documents
    • Storage Durability
    • Retrieving Documents
    • Data Serialization
    • Components
      • Auto Inflation
      • Manual Inflation
      • Custom Serialization
      • Binary
    • Custom Transformers
    • Executing Queries
      • View Queries
      • n1ql Queries
      • Query Options
      • Filter Closures
      • Transform Closures
      • Return Types
    • Managing Views
    • Working With Futures
  • Help & Support
Powered by GitBook
On this page
  • WireBox Mappings
  • ColdBox Settings

Was this helpful?

Edit on GitHub
Export as PDF
  1. Installation

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 to cfcouchbase.config.CouchbaseConfig

  • CouchbaseClient@cfcouchbase maps to cfcouchbase.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 theCouchbaseConfigobject and ColdBox will configure theCouchbaseClient` for you.

couchbase = {
    servers     = "http://127.0.0.1:8091",
    bucketname     = "default",
    viewTimeout    = "1000"
};
PreviousInstallationNextTraditional Apps

Last updated 7 years ago

Was this helpful?