| 870 | } |
| 871 | |
| 872 | void hstrlenCommand(client *c) { |
| 873 | robj_roptr o; |
| 874 | |
| 875 | if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == nullptr || |
| 876 | checkType(c,o,OBJ_HASH)) return; |
| 877 | addReplyLongLong(c,hashTypeGetValueLength(o,szFromObj(c->argv[2]))); |
| 878 | } |
| 879 | |
| 880 | static void addHashIteratorCursorToReply(client *c, hashTypeIterator *hi, int what) { |
| 881 | if (hi->encoding == OBJ_ENCODING_ZIPLIST) { |
nothing calls this directly
no test coverage detected