-
-
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
Add prefix for cache keys. #3702
Conversation
Codecov Report
Additional details and impacted files |
A same argument named |
|
I know your business scenario, the parameters |
@kesonan 对,是这样,因为现在redis默认是固定死的,有一个前缀,这样在业务上不会造成各种困扰 |
redis默认是db0,很多项目共用redis实例的时候,可能导致redis的key重复,生成cache的时候加上prefix,这个参数可以是当前项目的名字,这样就可以很好的解决共用redis实例的时候,相同的表的redis缓存key一致的情况.eg:cache:system:config:id(old: cache:config:id)