We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我们应用重启后首次调用接口会出现超时的情况,看了下Cache接口的GET方法内部实现有懒加载配置的逻辑,导致首次超时;请问有没有配置预加载选项;
依赖:
<dependency> <groupId>com.alicp.jetcache</groupId> <artifactId>jetcache-starter-redis</artifactId> <version>2.5.16</version> </dependency>
缓存创建逻辑:
@CreateCache( name = "xxx", timeUnit = TimeUnit.DAYS, expire = 7, cacheType = CacheType.REMOTE) private Cache<String, String> xxxCache;
配置:
jetcache: statIntervalMinutes: 15 areaInCacheName: false hiddenPackages: true local: default: type: linkedhashmap keyConvertor: fastjson limit: 1000 expireAfterWriteInMillis: 3600000 remote: default: type: redis keyConvertor: fastjson valueEncoder: java valueDecoder: java host: 127.0.0.1 port: 6379 password: poolConfig: minIdle: 5 maxIdle: 20 maxTotal: 50
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我们应用重启后首次调用接口会出现超时的情况,看了下Cache接口的GET方法内部实现有懒加载配置的逻辑,导致首次超时;请问有没有配置预加载选项;
依赖:
缓存创建逻辑:
配置:
The text was updated successfully, but these errors were encountered: