internal override RedisType Parse(RedisExecutor executor) { executor.AssertType(RedisReplyType.Status); var type_s = executor.ReadLine(); return((RedisType)Enum.Parse(REDIS_TYPE, type_s, true)); }
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); }