Last active
April 16, 2019 07:17
-
-
Save bhawna94/7e7d1cf2c1fef8793f71f4779dcc5d9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Connecting Synchronously | |
Cluster cluster = CouchbaseCluster.create("node1"); | |
cluster.authenticate("username","password"); | |
Bucket bucket = cluster.openBucket("bucketname"); | |
//Connecting Asynchronously | |
AsyncCluster cluster = CouchbaseAsyncCluster.create("node1") | |
Observable<AsyncBucket> bucket = cluster.openBucket("bucketname") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment