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

是否考虑@Cached @CacheUpdate @CacheInvalidate几个注解的name area等字段动态配置 #927

Open
chenfei66 opened this issue Sep 20, 2024 · 2 comments

Comments

@chenfei66
Copy link

chenfei66 commented Sep 20, 2024

我想把@cached @CacheUpdate @CacheInvalidate这几个注解写在BaseApi接口上,有一堆的接口实现类,想把每一类的数据都进行区分,类似如@cached(name=“#cacheName”)可以通过反射的方式获取cacheName方法的返回值以实现不同数据cache

@areyouok
Copy link
Collaborator

不支持,不考虑。

但是在yml里面设置一个keyPrefix作为前缀,不同的工程用不同的前缀。

@chenfei66
Copy link
Author

chenfei66 commented Sep 21, 2024 via email

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