box install cfcouchbaseto install the SDK
cfcouchbasein the web root. For a more secure installation, place it outside the web root and create a mapping called
cfcouchbase.CouchbaseClientfor each bucket you want to connect to. The
CouchbaseClientclass is thread safe and you only need one instance per bucket for your entire application. It is recommended that you store the instantiated client in a persistent scope such as
applicationwhen your app starts up so you can access it easily.
shutdown()method to close open connections to the Couchbase server. The following code sample will wait up to 10 seconds for connections to be closed.
CouchbaseClientfor each bucket you want to interact with. It is also extremely important that you shutdown the clients whenever your application goes down in order to gracefully shutdown connections, else your server might degrade.