Example #1
0
        public void SetUp()
        {
            global::Cassandra.Cluster cluster = Cluster.Builder().AddContactPoint("127.0.0.1").Build();
            Session session = cluster.Connect();

            KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.Cassandra.CassandraStoreProvider(session)));
        }
Example #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)));
        }
Example #3
0
 public void SetUp()
 {
     KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.Redis.RedisStoreProvider(new ServiceStack.Redis.RedisClient())));
 }
Example #4
0
 public void SetUp()
 {
     KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new SimpleMemoryStoreProvider()));
 }
Example #5
0
        public void SetUp()
        {
            string connString = "data source=ORCL;password=x;persist security info=True;user id=x";

            KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new OracleStoreProvider(connString)));
        }
Example #6
0
 public void SetUp()
 {
     KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new LibGitStoreProvider(@"Git\G1")));
 }
Example #7
0
 public void SetUp()
 {
     KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new KeyValueStorage.FSText.FSTextStoreProvider(@"C:\FSTextStore")));
 }
Example #8
0
        public void SetUp()
        {
            string connString = @"data source=localhost\SQLEXPRESS;initial catalog=Test;User Id=Test;Password=test";

            KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new SqlServerStoreProvider(connString)));
        }
Example #9
0
 public void SetUp()
 {
     KVStore.Initialize(new Func <Interfaces.IStoreProvider>(() => new AzureTableStoreProvider(CloudStorageAccount.DevelopmentStorageAccount)));
 }