You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/01 07:36:26 UTC

[GitHub] [dubbo] gang0713 edited a comment on issue #8610: 建议增加支持方法级别的缓存,对阿里jetcache缓存的支持,当把@Cached注解缓存定义在接口方法上时,不是先取缓存,还是通过RPC进行了远程调用。

gang0713 edited a comment on issue #8610:
URL: https://github.com/apache/dubbo/issues/8610#issuecomment-910016226


    @24kpure      如果官方能提供 @DubboCache基本方法的注解是最好了,为dubbo消费者方法直接使用缓存的能力,当缓存不存在时,再访问远程dubbo服务。参考实现:  https://github.com/bohrqiu/dubbo-cache
   相对于dubbo默认的缓存机制,此项目具有如下优点:
   原生dubbo cache机制只能缓存结果到消费者jvm中,并且cache key不能选择。
   缓存key生成灵活,和spring 声明式缓存一致,采用spring el表达式
   可以扩展CacheKeyValidator接口,实现键缓存策略
   可以扩展CacheValueValidator接口,实现值缓存策略
   由于采用分布式缓存,服务提供端可以灵活控制缓存


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org