Skip to content

Commit c583ed6

Browse files
committed
add guava cache Invalid
1 parent d30ba46 commit c583ed6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

springboot-Cache/src/main/resources/application.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ ms.db.url=jdbc:mysql://localhost:3306/cache?prepStmtCacheSize=517&cachePrepStmts
33
ms.db.username=root
44
ms.db.password=admin
55
ms.db.maxActive=500
6-
6+
#最多缓存 500 条 ,缓存在 30 分钟后失效
7+
#spring.cache.guava.spec= maximumSize=500,expireAfterWrite=30m
78
#redis.hostname=xxxxxx
89

910
redis.hostname=xxxxxx

0 commit comments

Comments
 (0)