Exemplo n.º 1
0
        public RedisProtocolData(ref byte[] redisProtocol)
        {
            ByteArray redisProtocolDataArr = RedisCommonFunc.RedisObjBytesToObjByteArray(ref redisProtocol);

            m_SourceChannelID  = redisProtocolDataArr.readDynamicsInt();
            m_IsFromClient     = redisProtocolDataArr.readByte();
            m_IsLongConnect    = redisProtocolDataArr.readByte();
            m_GameProtocolData = ByteArray.SReadFromByteArray(redisProtocolDataArr);
        }
Exemplo n.º 2
0
        public RedisLPush(string key, ByteArray datas, RedisCommandCallBackNullFunc commandCallBack, params object[] argv)
            : base(commandCallBack != null)
        {
            m_key                 = key;
            m_value               = RedisCommonFunc.ObjByteArrayToRedisObjBytes(datas);
            m_commandCallBack     = commandCallBack;
            m_commandCallBackArgv = argv;
#if RedisCommandSpendTime
            m_sw.Start();
#endif
        }