Quantcast
Channel: How to delete keys matching a pattern in Redis Cluster - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by for_stack for How to delete keys matching a pattern in Redis Cluster

Answers for that question try to remove multiple keys in a single DEL. However, keys matching the given pattern might NOT locate in the same slot, and Redis Cluster DOES NOT support multiple-key...

View Article


How to delete keys matching a pattern in Redis Cluster

I have tried method in this question, but it does not work since I'm working in cluster mode, and redis told me: (error) CROSSSLOT Keys in request don't hash to the same slot

View Article


Answer by Jason Hoetger for How to delete keys matching a pattern in Redis...

Building on for_stack's answer, you can speed up mass deletion quite a bit using redis-cli --pipe, and reduce the performance impact with UNLINK instead of DEL if you're using redis 4 or...

View Article

Answer by Archimedes Trajano for How to delete keys matching a pattern in...

redis-cli provides a -c option to follow MOVED redirects. However, it should be deleted one at a time because you cannot guarantee two keys will be in the same node.redis-cli -h myredis.internal --scan...

View Article
Browsing all 4 articles
Browse latest View live