You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Motivation
Using Namespace in cluster mode to easily flush the keys .
Solution
As i knew namespace simply prepend the namespace prefix to the user key and remove it before retrieving. But it couldn't achieve with just simple key prefix.
we use the hash bracket like below, if our namespace is foo, and key is 1234, it will be successfully removed all the keys with same namespace.
{foo}:1234
Are you willing to submit a PR?
I'm willing to submit a PR!
The text was updated successfully, but these errors were encountered:
@Taymindis Delete keys with the specified prefix would be easy in Kvrocks, but Redis now doesn't have a command for this and we need to invent one if we would like to support this. What do you think? @apache/kvrocks-committers
git-hulk
changed the title
Namespace for cluster mode.
Allow to delete keys by the prefix
Oct 30, 2024
As all keys are sorted by lexicographic order in kvrocks, maybe we can think of a set of commands about key prefix operation, of course, deleting keys by the prefix.
oh scan already supports key pattern, but kvrocks is faster than expected
Search before asking
Motivation
Solution
we use the hash bracket like below, if our namespace is
foo
, and key is 1234, it will be successfully removed all the keys with same namespace.{foo}:1234
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: