예제 #1
0
        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();
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
 public RedisGeoCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #5
0
 public RedisPubSubCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #6
0
 public RedisConnectionCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisHyperLogLogCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #8
0
 public RedisStringsCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #9
0
 public RedisListsCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #10
0
 public RedisCommandSet(RedisAsyncCommandExecuter executer)
 {
     m_Executer = executer;
     m_DbIndex  = m_Executer.DbIndex;
 }
예제 #11
0
 public RedisHashesCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisScriptingCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
예제 #13
0
 public RedisServerCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }
 public RedisSentinelCommands(RedisAsyncCommandExecuter executer)
     : base(executer)
 {
 }