Redis 问题 #204
Unanswered
jxj807158342
asked this question in
Q&A
Redis 问题
#204
Replies: 2 comments
-
在有另外一个线程并发读取你设置的accesstoken的时候你同事说的是没有错误的,所以必须要双删,具体表现为
这个执行步骤在大部分的情况下是没有问题的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
微信的 access_token 有一个过期时间, 如果是企业内的同一个微信access_token 应该要考虑多个组使用的情况.
提出一个设计思路
不确定 access_token 是否是 7200 过期那个 |
Beta Was this translation helpful? Give feedback.
0 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.
-
数据更新
1 .从微信接口获取 accesstoken
2.删除 redis 缓存
3. 更新数据库
今天 跟同事 讨论 他 说的是 先 第3步 再 2 第步,
如何反驳他,他说的理由是 高并发情况下 执行到第二步, 其他线程 查询,查询数据库的数据为旧数据
Beta Was this translation helpful? Give feedback.
All reactions