public void SetConnection(string conn) { if (!string.IsNullOrEmpty(conn)) { RedisBoss.SetConnection(conn); } }
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"); }
private ConnectionMultiplexer GetManager() { RedisBoss.SetConnection(conn); return(RedisBoss.ConnectionManger); }
public RedisUtils_Test() { RedisBoss.SetConnection(conn); }
public void SetConfig(RedisCacheConfiguration config) { RedisBoss.SetConnection(config.ConnectString); db = config.DB; }