-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Multiple keys are not deleted when using prefix because the prefix is only added to the first key.
Expected Behavior
Delete all keys.
Current Behavior
Only the first key is deleted.
Possible Solution
Add prefix to every key.
Steps to Reproduce
- Create a connection with prefix (e.g. cache)
- The following snipped shows the deletion example
var keys []string{"a", "b"}
redis.Del(ctx, keys...)
This will produce the following Redis delete
del cache:a b
But it should be del cache:a cache:b to remove all keys instead of only the first one.
Metadata
Metadata
Assignees
Labels
No labels