Skip to content
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

多级缓存下,redis失效似乎不会降级查本地缓存 #933

Open
LAIguapi opened this issue Oct 12, 2024 · 2 comments
Open

多级缓存下,redis失效似乎不会降级查本地缓存 #933

LAIguapi opened this issue Oct 12, 2024 · 2 comments

Comments

@LAIguapi
Copy link

在使用的过程中用jetcache的多级缓存,配置了本地和redis,当redis失效的时候,似乎不会降级查本地的local缓存
是缺了什么配置吗,还是框架没有提供这个功能,在查询的时候如果redis超时就会抛出异常

@areyouok
Copy link
Collaborator

先访问local,未命中再访问redis,出错不会抛异常

@LAIguapi
Copy link
Author

先访问local,未命中再访问redis,出错不会抛异常

对的,我这几天翻了一下源码,是先查local的
debug看了一下,他访问local的时候就已经拿不到了,然后再去查redis,假如这时候redis挂了(我手动关掉测试),他就会报异常
至于为啥local拿不到,还在看是咋回事,他有的时候能拿到,有的时候又拿不到,怪怪的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants