for exsample
keys PATTERN*
deletes (keys pattern*)
Comment From: enjoy-binbin
Redis have flushdb and flushall commands. Please check the docs
Comment From: icetech233
flushdb is all keys,, not pattern
Comment From: icetech233
Redis have flushdb and flushall commands. Please check the docs
KEYS PATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERNPATTERN
PATTERN
PATTERN
Comment From: itamarhaber
Hello @icetech233 - this isn't helpful.
Comment From: hwware
@icetech233 Hi dude, Please ask question or express your idea with some nice words, we work here as a team. Thanks
Comment From: enjoy-binbin
@icetech233 sorry, i miss that in the first place (reading it in a tiny phone)
currently there is no way to do it, and it is unlikely that we will implement this command (it should be inefficient like any other keys / scan command) I suggest to use script + pipeline to delete those keys, minimize the impact on the redis server side