コード例 #1
0
        public static void CreateBucketConnection()
        {
            var cluster  = ClusterFactory.GetCluster();
            var cbConfig = new CouchbaseConfiguration();

            var password = cbConfig.GetPassword();

            if (!string.IsNullOrWhiteSpace(password))
            {
                bucket = cluster.OpenBucket(cbConfig.GetBucket(), password);
            }
            else
            {
                bucket = cluster.OpenBucket(cbConfig.GetBucket());
            }

            bucketManager = bucket.CreateManager("Administrator", "123456");
        }
コード例 #2
0
 private static void CreateBucketConnection()
 {
     var cluster = ClusterFactory.GetCluster();
     ////
 }