【7.3.2】【cache】缓存分隔符改为常量

pull/41/head
fengshuonan 2022-11-07 23:14:15 +08:00
parent 8aa7d25057
commit 7c53c9a4a0
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ import cn.stylefeng.roses.kernel.rule.tenant.TenantPrefixApi;
import java.util.Collection;
import java.util.Map;
import static cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants.CACHE_DELIMITER;
/**
*
* <p>
@ -169,9 +171,9 @@ public interface CacheOperatorApi<T> {
}
if (StrUtil.isBlank(keyParam)) {
return tenantPrefix + ":" + getCommonKeyPrefix();
return tenantPrefix + CACHE_DELIMITER + getCommonKeyPrefix();
} else {
return tenantPrefix + ":" + getCommonKeyPrefix() + keyParam.toUpperCase();
return tenantPrefix + CACHE_DELIMITER + getCommonKeyPrefix() + keyParam.toUpperCase();
}
}