diff --git a/redisson-mybatis/src/main/java/org/redisson/mybatis/RedissonCache.java b/redisson-mybatis/src/main/java/org/redisson/mybatis/RedissonCache.java index 61d7428bc..5399f6265 100644 --- a/redisson-mybatis/src/main/java/org/redisson/mybatis/RedissonCache.java +++ b/redisson-mybatis/src/main/java/org/redisson/mybatis/RedissonCache.java @@ -105,7 +105,7 @@ public class RedissonCache implements Cache { } RedissonClient redisson = Redisson.create(cfg); - mapCache = getMapCache(redisson); + mapCache = getMapCache(id, redisson); if (maxSize > 0) { mapCache.setMaxSize(maxSize); }