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

Was this helpful?

Edit on GitHub
Export as PDF
  1. Configuration

Structure

The simplest way to get started using the SDK is to simply pass a struct of config settings into the constructor when you create the client.

couchbase = new cfcouchbase.CouchbaseClient(
    {
        servers = [
            "http://cache1:8091", 
            "http://cache2:8091"
        ],
        bucketName  = "myBucket",
        viewTimeout = 1000
    } 
);
PreviousSettingsNextSummary

Last updated 7 years ago

Was this helpful?