change cache key #9076 (#9154)

This commit is contained in:
lmj 2021-10-29 10:50:05 +08:00 committed by GitHub
parent 7a59b4b875
commit 40bd0cab93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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