You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your advice, actually ReferenceConfigCache is a reference implementation for users. We highly recommend you cache any ReferenceConfig instances, and recommend you implement your own cache tools.
Anyway, the current official implementation do need improvement, we'll discuss improve it or not and how to improve it.
In my project, this method ReferenceConfigCache is used for genericService calls, caching ReferenceConfig instances, for the user is knowing his the method arguments.Of course, it also looks complicated to use.
In my implementation, I use interfaceName, group and version as a key, used as follow:
Activity
[-]关于ReferenceConfigCache的问题[/-][+]A question for ReferenceConfigCache.[/+]chickenlj commentedon Feb 17, 2018
Thanks for your advice, actually
ReferenceConfigCacheis a reference implementation for users. We highly recommend you cache any ReferenceConfig instances, and recommend you implement your own cache tools.Anyway, the current official implementation do need improvement, we'll discuss improve it or not and how to improve it.
Welcome create a PR if you have any good ideas.
timestatic commentedon Feb 17, 2018
Thanks for your reply, I understand what you mean.
diecui1202 commentedon Aug 30, 2018
It's not a good way to provide
getmethod for ReferenceConfigCache, we do not know the method arguments. It's also not easy-to-use.Defer it firstly until we reach a reasonable approach.
timestatic commentedon Sep 6, 2018
In my project, this method
ReferenceConfigCacheis used for genericService calls, cachingReferenceConfiginstances, for the user is knowing his the method arguments.Of course, it also looks complicated to use.In my implementation, I use interfaceName, group and version as a key, used as follow:
MyReferenceConfigCachesome modified methodis as follows: