Example #1
0
        internal override RedisType Parse(RedisExecutor executor)
        {
            executor.AssertType(RedisReplyType.Status);
            var type_s = executor.ReadLine();

            return((RedisType)Enum.Parse(REDIS_TYPE, type_s, true));
        }
Example #2
0
            internal override bool Parse(RedisExecutor executor)
            {
                var type = executor.ReadType(false);
                var str  = executor.ReadLine();

                if (type == RedisReplyType.Error)
                {
                    return(false);
                }

                return(Int64.Parse(str) == 1);
            }