GitHub user a2501521908 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 width="2830" height="1478" alt="image" 
src="https://github.com/user-attachments/assets/28734037-b4c1-4eb2-82d2-8a1cda5b8729";
 />


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

----
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