GitHub user RainYuY added a comment to the discussion: dubbo缓存过期时间

> ```java
> @DubboService(methods = {@Method(name="getBusinessHost",cache = 
> "expiring",parameters = {
>         "cache.seconds", "60",
>         "cache.interval", "10"
> })})
> ```
> 
> It seems that method-level cache configuration is still not supported. When 
> cache parameters are configured at the method level, Dubbo prefixes them with 
> methodName., for example methodName.cache.seconds. As a result, the 
> ExpiringCache implementation calls:
> 
> ```java
> url.getParameter("cache.seconds", 180)
> ```
> 
> and fails to retrieve the value, falling back to the default instead.
> 
> <img alt="image" width="2000" height="1478" 
> src="https://private-user-images.githubusercontent.com/32430752/536103693-28734037-b4c1-4eb2-82d2-8a1cda5b8729.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg0NzQzNjcsIm5iZiI6MTc2ODQ3NDA2NywicGF0aCI6Ii8zMjQzMDc1Mi81MzYxMDM2OTMtMjg3MzQwMzctYjRjMS00ZWIyLTgyZDItOGExY2RhNWI4NzI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTE1VDEwNDc0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlNTNjZTJlOWFmOWMzYmNhNTY1YjM0MmJlYWJkODkzNDRlN2FkNWY2NzEwYzYxMjhhOGJjMjllZDc3YjdjZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2EW8u1tkMXt0_iji_45eDUhfIif7yPD-7POnVddsy8w";>

You're right,I will think about it.

GitHub link: 
https://github.com/apache/dubbo/discussions/16002#discussioncomment-15505496

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


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

Reply via email to