Replies: 1 comment 2 replies
-
因为这些key不一定在同一个node上,一次删可能删不全 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在redis.go中 Del方法内部的getRedis已经区分了cachenode.redis是ClusterType和NodeType类型,这两种类型都实现了Cmdable的接口,这个接口中的Del方法可以删除单个key和批量删除keys。那为什么在cachenode.go:Del(line:63)这个函数里还要区分cachenode.redis的类型,并且在Type为redis.ClusterType要一个个删除key而不是批量删除key?没看明白,求大佬解答一下
Beta Was this translation helpful? Give feedback.
All reactions