protected internal RedisSentinelClient(RedisAsyncClient client)
        {
            if (client == null)
            {
                throw new RedisFatalException(new ArgumentNullException("client"), RedisErrorCode.MissingParameter);
            }

            m_Client   = client.Disposed ? new RedisAsyncClient(client.Settings) : client;
            m_Executer = new RedisAsyncCommandExecuter(m_Client, RedisConstants.UninitializedDbIndex);
        }
        private void Init(RedisConnectionSettings settings, RedisAsyncClient client)
        {
            m_Executer = new RedisAsyncCommandExecuter(client, RedisConstants.UninitializedDbIndex);
            if (IsHeartBeatEnabled(settings))
            {
                m_HeartBeatProbe = new RedisHeartBeatProbe(settings, this, null);
                m_HeartBeatProbe.SetOnPulseStateChange(OnPulseStateChange);

                m_HeartBeatProbe.AttachToCardio();
            }
        }
        public RedisSentinelClient(RedisSentinelSettings settings)
            : base()
        {
            if (settings == null)
            {
                throw new RedisFatalException(new ArgumentNullException("settings"), RedisErrorCode.MissingParameter);
            }

            m_Client   = new RedisAsyncClient(settings);
            m_Executer = new RedisAsyncCommandExecuter(m_Client, RedisConstants.UninitializedDbIndex);
        }
 public RedisGeoCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
Beispiel #5
0
 public RedisPubSubCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
Beispiel #6
0
 public RedisConnectionCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisHyperLogLogCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
Beispiel #8
0
 public RedisStringsCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisListsCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisCommandSet(RedisAsyncCommandExecuter executer)
 {
     m_Executer = executer;
     m_DbIndex  = m_Executer.DbIndex;
 }
 public RedisHashesCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisScriptingCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisServerCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisSentinelCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }