三.redis 排序
发布时间: 2013-03-26 09:54:34 作者: rapoo
三.redis 排序
if (alpha) {if (sortby) vector[j].u.cmpobj = getDecodedObject(byval);} else {if (byval->encoding == REDIS_ENCODING_RAW) { vector[j].u.score = strtod(byval->ptr,NULL);} else if (byval->encoding == REDIS_ENCODING_INT) { /* Don't need to decode the object if it's * integer-encoded (the only encoding supported) so * far. We can just cast it */ vector[j].u.score = (long)byval->ptr;} else { redisAssert(1 != 1); } }