diff --git a/src/main/java/net/lamgc/cgj/cache/RedisPoolCacheStore.java b/src/main/java/net/lamgc/cgj/cache/RedisPoolCacheStore.java index f7b8dbb..bde0715 100644 --- a/src/main/java/net/lamgc/cgj/cache/RedisPoolCacheStore.java +++ b/src/main/java/net/lamgc/cgj/cache/RedisPoolCacheStore.java @@ -23,7 +23,7 @@ public abstract class RedisPoolCacheStore implements CacheStore { 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