Lookup a key for write operations, and as a side effect, if needed, expires * the key if its TTL is reached. * * Returns the linked value object if the key exists or NULL if the key * does not exist in the specified DB. */
| 158 | * Returns the linked value object if the key exists or NULL if the key |
| 159 | * does not exist in the specified DB. */ |
| 160 | robj *lookupKeyWriteWithFlags(redisDb *db, robj *key, int flags) { |
| 161 | expireIfNeeded(db,key); |
| 162 | return lookupKey(db,key,flags); |
| 163 | } |
| 164 | |
| 165 | robj *lookupKeyWrite(redisDb *db, robj *key) { |
| 166 | return lookupKeyWriteWithFlags(db, key, LOOKUP_NONE); |
no test coverage detected