| 865 | } |
| 866 | |
| 867 | void hstrlenCommand(client *c) { |
| 868 | robj *o; |
| 869 | |
| 870 | if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL || |
| 871 | checkType(c,o,OBJ_HASH)) return; |
| 872 | addReplyLongLong(c,hashTypeGetValueLength(o,c->argv[2]->ptr)); |
| 873 | } |
| 874 | |
| 875 | static void addHashIteratorCursorToReply(client *c, hashTypeIterator *hi, int what) { |
| 876 | if (hi->encoding == OBJ_ENCODING_ZIPLIST) { |
nothing calls this directly
no test coverage detected