示例#1
0
        protected override void BeforeTest()
        {
            _muxr = ConnectionMultiplexer.Connect("localhost");

            _muxr.GetDatabase().Execute("FLUSHDB");

            _api = new RedisGraph(_muxr.GetDatabase(0));
        }
        protected override void BeforeTest()
        {
            _muxr = ConnectionMultiplexer.Connect("localhost");

            _api = new RedisGraph(_muxr.GetDatabase(0));

            Assert.NotNull(_api.Query("social", "CREATE (:person{mixed_prop: 'strval'}), (:person{mixed_prop: 50})"));
        }
示例#3
0
 protected override void AfterTest()
 {
     _api = null;
     _muxr.Dispose();
     _muxr = null;
 }
示例#4
0
 internal GraphCache(string graphId, RedisGraph redisGraph)
 {
     _labels            = new GraphCacheList(graphId, "db.labels", redisGraph);
     _propertyNames     = new GraphCacheList(graphId, "db.propertyKeys", redisGraph);
     _relationshipTypes = new GraphCacheList(graphId, "db.relationshipTypes", redisGraph);
 }