From 40bd0cab93155d09f091f41b8494df7904e30ce7 Mon Sep 17 00:00:00 2001 From: lmj <1033237526@qq.com> Date: Fri, 29 Oct 2021 10:50:05 +0800 Subject: [PATCH] change cache key #9076 (#9154) --- .../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 17530af874..2d716a3207 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.