mirror of https://gitee.com/stylefeng/roses
【7.3.2】【cache】缓存分隔符改为常量
parent
8aa7d25057
commit
7c53c9a4a0
|
@ -33,6 +33,8 @@ import cn.stylefeng.roses.kernel.rule.tenant.TenantPrefixApi;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import static cn.stylefeng.roses.kernel.cache.api.constants.CacheConstants.CACHE_DELIMITER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 缓存操作的基础接口,可以实现不同种缓存实现
|
* 缓存操作的基础接口,可以实现不同种缓存实现
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -169,9 +171,9 @@ public interface CacheOperatorApi<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StrUtil.isBlank(keyParam)) {
|
if (StrUtil.isBlank(keyParam)) {
|
||||||
return tenantPrefix + ":" + getCommonKeyPrefix();
|
return tenantPrefix + CACHE_DELIMITER + getCommonKeyPrefix();
|
||||||
} else {
|
} else {
|
||||||
return tenantPrefix + ":" + getCommonKeyPrefix() + keyParam.toUpperCase();
|
return tenantPrefix + CACHE_DELIMITER + getCommonKeyPrefix() + keyParam.toUpperCase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue