[Fix] 修复Prefix不会自动补充前缀分隔符的问题;

This commit is contained in:
LamGC 2020-03-30 11:41:58 +08:00
parent 2d8652c8bc
commit ddf9473326

View File

@ -23,7 +23,7 @@ public abstract class RedisPoolCacheStore<T> implements CacheStore<T> {
redisServerUri.getPort() <= 0 ? 6379 : redisServerUri.getPort(),
timeout <= 0 ? Protocol.DEFAULT_TIMEOUT : timeout, password);
log = LoggerFactory.getLogger("RedisPoolCacheStore@" + Integer.toHexString(jedisPool.hashCode()));
this.keyPrefix = prefix;
this.keyPrefix = prefix.endsWith(".") ? prefix : prefix + ".";
}
@Override