redis-mock icon indicating copy to clipboard operation
redis-mock copied to clipboard

Expire timeout is not cleared when changing value

Open fabiansperber opened this issue 4 years ago • 0 comments

"The timeout will only be cleared by commands that delete or overwrite the contents of the key, including DEL, SET, GETSET and all the *STORE commands." https://redis.io/commands/expire

Currently calling .set() does not clear the timeout - and others won't too.

Also calling .set() before the timeout expires, makes it impossible to change the timeout with a second .expire() call as the timeout information gets overwritten by .set()

fabiansperber avatar Mar 19 '21 09:03 fabiansperber