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

CacheFilter 怎么仅提供者生效 #11186

Open
UniquKin opened this issue Dec 21, 2022 · 5 comments
Open

CacheFilter 怎么仅提供者生效 #11186

UniquKin opened this issue Dec 21, 2022 · 5 comments

Comments

@UniquKin
Copy link

测试版本 version 2.7.8
当在接口上配置了cache=expiring的缓存配置后,消费者和提供者对该配置都生效了
怎么配置才能仅提供者生效?

@AlbumenJ
Copy link
Member

可以在客户端配置 filter=-cache 来防止 CacheFilter加载

@UniquKin
Copy link
Author

可以在客户端配置 filter=-cache 来防止 CacheFilter加载
谢谢,不过测试这个参数没生效,但根据你给的思路发现 reference.filter=-cache 是可以实现的

@UniquKin
Copy link
Author

UniquKin commented Dec 22, 2022 via email

@UniquKin
Copy link
Author

UniquKin commented Jan 5, 2023

感谢您的回复,确实是一个不曾想过的方案👍 从 Windows 版邮件发送 发件人: Albumen Kevin 发送时间: 2022年12月21日 23:37 收件人: apache/dubbo 抄送: UniquKin; Author 主题: Re: [apache/dubbo] CacheFilter 怎么仅提供者生效 (Issue #11186) 可以在客户端侧配置 cache=xxx 一个不存在的 cache 来进行覆盖 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

测试会抛出异常的

@AlbumenJ
Copy link
Member

AlbumenJ commented Jan 5, 2023

什么异常呢,我这边测试是可以的

@AlbumenJ AlbumenJ removed the question label Mar 8, 2024
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