do not delete expired keys in KEYS command#5470
Conversation
|
@soloestoy I wonder why this. Background: some users are actually relying on this - touching every key w/ KEYS or SCAN - to force expiry. |
|
Hi @itamarhaber , I know that people use |
|
Hello folks, I think that KEYS should remain like it is, showing the set of keys that exist. Not doing that would depart from the semantics from a product point of view, like: So I would not modify KEYS... However I've another solution for people that are in need of such capability. I'll follow up shortly. |
Hi @antirez , I mean
|
|
Oh ok, that makes sense, and I like the refactoring going there in db.c, let me check the code better. |
|
I'm merging @soloestoy, changing only one thing. Just an subjective hint, matter of taste, but see the following code: It becomes much obvious once you remove the useless else/if |
do not delete expired keys in KEYS command
No description provided.