We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30ba46 commit c583ed6Copy full SHA for c583ed6
1 file changed
springboot-Cache/src/main/resources/application.properties
@@ -3,7 +3,8 @@ ms.db.url=jdbc:mysql://localhost:3306/cache?prepStmtCacheSize=517&cachePrepStmts
3
ms.db.username=root
4
ms.db.password=admin
5
ms.db.maxActive=500
6
-
+#最多缓存 500 条 ,缓存在 30 分钟后失效
7
+#spring.cache.guava.spec= maximumSize=500,expireAfterWrite=30m
8
#redis.hostname=xxxxxx
9
10
redis.hostname=xxxxxx
0 commit comments