| 181 | } |
| 182 | |
| 183 | robj *lookupKeyWriteOrReply(client *c, robj *key, robj *reply) { |
| 184 | robj *o = lookupKeyWrite(c->db, key); |
| 185 | if (!o) SentReplyOnKeyMiss(c, reply); |
| 186 | return o; |
| 187 | } |
| 188 | |
| 189 | /* Add the key to the DB. It's up to the caller to increment the reference |
| 190 | * counter of the value if needed. |
no test coverage detected