public void SetConnection(string conn)
 {
     if (!string.IsNullOrEmpty(conn))
     {
         RedisBoss.SetConnection(conn);
     }
 }
Esempio n. 2
0
        public void Redis_Cluster_Set_And_Change_Channel_Test()
        {
            RedisBoss.SetConnection("127.0.0.1:7000,127.0.0.1:7001");

            var rs = new RedisString();

            rs.Set("key", "value");

            RedisBoss.SetConnection("127.0.0.1:7003,127.0.0.1:7004");

            var val = rs.Get("key");
        }
Esempio n. 3
0
        private ConnectionMultiplexer GetManager()
        {
            RedisBoss.SetConnection(conn);

            return(RedisBoss.ConnectionManger);
        }
Esempio n. 4
0
 public RedisUtils_Test()
 {
     RedisBoss.SetConnection(conn);
 }
Esempio n. 5
0
 public void SetConfig(RedisCacheConfiguration config)
 {
     RedisBoss.SetConnection(config.ConnectString);
     db = config.DB;
 }