This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 40bd0ca change cache key #9076 (#9154)
40bd0ca is described below
commit 40bd0cab93155d09f091f41b8494df7904e30ce7
Author: lmj <[email protected]>
AuthorDate: Fri Oct 29 10:50:05 2021 +0800
change cache key #9076 (#9154)
---
.../main/java/org/apache/dubbo/cache/support/AbstractCacheFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/AbstractCacheFactory.java
b/dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/AbstractCacheFactory.java
index 17530af..2d716a3 100644
---
a/dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/AbstractCacheFactory.java
+++
b/dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/AbstractCacheFactory.java
@@ -56,7 +56,7 @@ public abstract class AbstractCacheFactory implements
CacheFactory {
@Override
public Cache getCache(URL url, Invocation invocation) {
url = url.addParameter(METHOD_KEY, invocation.getMethodName());
- String key = url.toFullString();
+ String key = url.getServiceKey() + invocation.getMethodName();
Cache cache = caches.get(key);
// get from cache first.