Lines Matching refs:type
162 if (val->type == OBJ_LIST) signalListAsReady(db, key); in dbAdd()
266 serverAssert(o->type == OBJ_STRING); in dbUnshareStringValue()
441 } else if (o->type == OBJ_SET) { in scanCallback()
444 } else if (o->type == OBJ_HASH) { in scanCallback()
449 } else if (o->type == OBJ_ZSET) { in scanCallback()
502 serverAssert(o == NULL || o->type == OBJ_SET || o->type == OBJ_HASH || in scanGenericCommand()
503 o->type == OBJ_ZSET); in scanGenericCommand()
551 } else if (o->type == OBJ_SET && o->encoding == OBJ_ENCODING_HT) { in scanGenericCommand()
553 } else if (o->type == OBJ_HASH && o->encoding == OBJ_ENCODING_HT) { in scanGenericCommand()
556 } else if (o->type == OBJ_ZSET && o->encoding == OBJ_ENCODING_SKIPLIST) { in scanGenericCommand()
580 } else if (o->type == OBJ_SET) { in scanGenericCommand()
587 } else if (o->type == OBJ_HASH || o->type == OBJ_ZSET) { in scanGenericCommand()
639 if (o && (o->type == OBJ_ZSET || o->type == OBJ_HASH)) { in scanGenericCommand()
685 char *type; in typeCommand() local
689 type = "none"; in typeCommand()
691 switch(o->type) { in typeCommand()
692 case OBJ_STRING: type = "string"; break; in typeCommand()
693 case OBJ_LIST: type = "list"; break; in typeCommand()
694 case OBJ_SET: type = "set"; break; in typeCommand()
695 case OBJ_ZSET: type = "zset"; break; in typeCommand()
696 case OBJ_HASH: type = "hash"; break; in typeCommand()
697 default: type = "unknown"; break; in typeCommand()
700 addReplyStatus(c,type); in typeCommand()