コード例 #1
0
        public static CouchbaseCluster GetCouchbaseCluster()
        {
            var cf = GetCouchbaseClientConfiguration();
            CouchbaseCluster cc = new global::Couchbase.Management.CouchbaseCluster(cf);

            return(cc);
        }
コード例 #2
0
        public void SetUp()
        {
            var config = new global::Couchbase.Configuration.CouchbaseClientConfiguration()
            {
                Bucket   = "default",
                Password = "******"
            };

            config.Urls.Add(new Uri("http://127.0.0.1:8091/pools"));

            var client  = new global::Couchbase.CouchbaseClient(config);
            var cluster = new global::Couchbase.Management.CouchbaseCluster(config);
            var stats   = client.Stats();

            KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new Couchbase.CouchbaseStoreProvider(client, cluster, config.Bucket)));
        }
コード例 #3
0
ファイル: DatabaseHelper.cs プロジェクト: Godoy/CMS
 public static CouchbaseCluster GetCouchbaseCluster()
 {
     var cf = GetCouchbaseClientConfiguration();
     CouchbaseCluster cc = new global::Couchbase.Management.CouchbaseCluster(cf);
     return cc;
 }