Skip to content

Commit

Permalink
🔧 更新配置文件, 增加是否开启缓存自动刷新控制
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojun1998 committed Feb 26, 2020
1 parent 261d480 commit 46f292c
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ spring:
profiles:
active: prod

boot:
admin:
context-path: /act
zfile:
cache:
timeout: 300
auto-refresh:
enable: true # 是否开启自动刷新缓存.
delay: 1800 # 启动项目后多久开始自动刷新缓存, 推荐与 interval 一致, 因为项目启动时会缓存所有文件.
interval: 1800 # 任务间隔时间, 也就是每多长时间会自动刷新缓存一次.
timeout: 1800
constant:
readme: readme.md
password: password.txt
Expand All @@ -67,15 +68,4 @@ zfile:
clientId: 4a72d927-1907-488d-9eb2-1b465c53c1c5
clientSecret: Y9CEA=82da5n-y_]KAWAgLH3?R9xf7Uw
redirectUri: https://zfile.jun6.net/onedrive/china-callback
scope: offline_access User.Read Files.ReadWrite.All

jetcache:
statIntervalMinutes: 0
areaInCacheName: false
local:
default:
type: caffeine
keyConvertor: fastjson



scope: offline_access User.Read Files.ReadWrite.All

0 comments on commit 46f292c

Please sign in to comment.