-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on cache correctness. #3736
Comments
You put data into two redis nodes manually? |
我有两个redis写在了配置里边,在注释掉其中一个redis的配置的情况下去查询数据,之后再只注释掉另一个redis的配置,这样两个redis就持有了相同的数据。
|
I have two redis written in the configuration. I comment out the configuration of one redis to query the data, and then only comment out the configuration of the other redis, so that the two redis hold the same data.
|
I don't think we can handle this. If you want to switch redis cluster, just delete all caches. |
This issue is stale because it has been open for 30 days with no activity. |
个人对go-zero的sqlc部分进行了实践,加入了两个redis,在两个redis之间都放了相同的数据,这个数据是通过sqlc的查询操作放入redis的,之后进行sqlc的删除操作,但只有一个redis的该数据被删除,另一个的还在(但访问的时候又不去访问那个redis的数据,把第一个redis的配置注释掉,只剩这个有数据的redis时才会去访问它),在调试的时候发现在删除缓存的部分是只删除一个节点的key
另 一个的redis的脏数据确实没有处理
The text was updated successfully, but these errors were encountered: