...
|
...
|
@@ -51,7 +51,7 @@ public class ConfigTypeServiceImpl implements IConfigTypeService, InitializingBe |
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
codeConfigTypeRedisCache = RedisCacheBuilder.newBuilder()
|
|
|
.withYhRedis(redisTemplate, valueOperations)
|
|
|
.withExpire(5, TimeUnit.SECONDS)
|
|
|
.withExpire(1, TimeUnit.HOURS)
|
|
|
.withKeySerializer(new KeySerializer<String>() {
|
|
|
|
|
|
private String keyPrefix = "ufo:resources:configType:code:";
|
...
|
...
|
|