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


    @24kpure    @AlbumenJ   如果官方能提供 
@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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to