Skip to content

Commit 5973af8

Browse files
committed
多模块项目使用枚举配置spring-cache缓存
1 parent c59b6f4 commit 5973af8

File tree

1 file changed

+2
-2
lines changed
  • content/posts/multi-module-project-use-enum-config-spring-cache

1 file changed

+2
-2
lines changed

content/posts/multi-module-project-use-enum-config-spring-cache/index.zh-cn.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ common模块缓存配置(***使用 Lombok 的 FieldNameConstants 自动生成
4040
@lombok.experimental.FieldNameConstants(onlyExplicitlyIncluded = true)
4141
public enum CommonCacheConfig implements ICacheConfig {
4242

43-
@FieldNameConstants.Include QUOTE_LEVEL(1000, 2);
43+
@FieldNameConstants.Include QUOTE_LEVEL(2);
4444

4545
private final Integer ttl;
4646

@@ -54,7 +54,7 @@ public enum CommonCacheConfig implements ICacheConfig {
5454
@lombok.experimental.FieldNameConstants(onlyExplicitlyIncluded = true)
5555
public enum QuoteServiceCacheConfig implements ICacheConfig {
5656

57-
@FieldNameConstants.Include HOT_STOCK(1000, 30);
57+
@FieldNameConstants.Include HOT_STOCK(30);
5858

5959
private final Integer ttl;
6060

0 commit comments

Comments
 (0)