add check the result of expireIfNeeded

when we look up a key, we will check the key's expire first,
if the key exceed the time, we don't look up key again, return NULL directly