go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

del multi keys, cross keys in request don't hash to the same slot

Open 13881802223 opened this issue 2 years ago • 1 comments

Describe the bug When deleting multi keys in different slots, i got error below: CROSSSLOT KEYS in request don't hash to the same slot

How could i del keys in different slots?Which api is suggested?

Please Help me! Thanks a lot

13881802223 avatar Jun 28 '22 13:06 13881802223

You must separate operations for keys in different slots. So group your keys by hashslots, then exec DEL <keys with same hashslot> ... one by one

bald2b avatar Aug 11 '22 04:08 bald2b

This issue is marked stale. It will be closed in 30 days if it is not updated.

github-actions[bot] avatar Sep 22 '23 00:09 github-actions[bot]