Skip to content

Commit

Permalink
🐛 配置名
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Dec 29, 2020
1 parent bf3f741 commit ba7c33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server:
search: true #是否开启搜索接口,开启搜索之后密码和根目录都会失效,所以前端暂时不做搜索
static: dist #前端文件目录
cache:
cache: true #是否开启缓存
enable: true #是否开启缓存
expiration: 5 #缓存失效时间(单位:分钟)
cleanup_interval: 10 #清理失效缓存间隔
refresh_password: password #手动清理缓存密码
Expand Down
2 changes: 1 addition & 1 deletion conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Config struct {
Static string `yaml:"static"`
} `yaml:"server"`
Cache struct{
Enable bool `yaml:"cache"`
Enable bool `yaml:"enable"`
Expiration int `yaml:"expiration"`
CleanupInterval int `yaml:"cleanup_interval"`
RefreshPassword string `yaml:"refresh_password"`
Expand Down

0 comments on commit ba7c33a

Please sign in to comment.