From ddf94733266eb3408fdcd2ce459aa7b06a1d4566 Mon Sep 17 00:00:00 2001 From: LamGC Date: Mon, 30 Mar 2020 11:41:58 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E5=A4=8DPrefix=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8=E8=A1=A5=E5=85=85=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E5=88=86=E9=9A=94=E7=AC=A6=E7=9A=84=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/lamgc/cgj/cache/RedisPoolCacheStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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