♻️ Refactoring code.启用缓存自动ttl特性时,保留原始键不变
This commit is contained in:
1 parent
de47cf88ab
commit
e89f919aa1
1 file changed
+1
-1
+1
-1
@@ -68,7 +68,7 @@ public class RedisAutoCacheManager extends RedisCacheManager {
|
|||||||
Duration duration = DurationStyle.detectAndParse(cacheArray[1], ChronoUnit.SECONDS);
|
Duration duration = DurationStyle.detectAndParse(cacheArray[1], ChronoUnit.SECONDS);
|
||||||
cacheConfig = cacheConfig.entryTtl(duration);
|
cacheConfig = cacheConfig.entryTtl(duration);
|
||||||
}
|
}
|
||||||
return super.createRedisCache(name, cacheConfig);
|
return super.createRedisCache(cacheArray[0], cacheConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user