Return the key or value at the current iterator position as a new * SDS string. */
| 442 | /* Return the key or value at the current iterator position as a new |
| 443 | * SDS string. */ |
| 444 | sds hashTypeCurrentObjectNewSds(hashTypeIterator *hi, int what) { |
| 445 | unsigned char *vstr; |
| 446 | unsigned int vlen; |
| 447 | long long vll; |
| 448 | |
| 449 | hashTypeCurrentObject(hi,what,&vstr,&vlen,&vll); |
| 450 | if (vstr) return sdsnewlen(vstr,vlen); |
| 451 | return sdsfromlonglong(vll); |
| 452 | } |
| 453 | |
| 454 | robj *hashTypeLookupWriteOrCreate(client *c, robj *key) { |
| 455 | robj *o = lookupKeyWrite(c->db,key); |
no test coverage detected