🐛 配置名

This commit is contained in:
微凉
2020-12-29 13:54:08 +08:00
parent bf3f741b22
commit 1b9b68745f
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ server:
search: true #是否开启搜索接口,开启搜索之后密码和根目录都会失效,所以前端暂时不做搜索
static: dist #前端文件目录
cache:
cache: true #是否开启缓存
enable: true #是否开启缓存
expiration: 5 #缓存失效时间(单位:分钟)
cleanup_interval: 10 #清理失效缓存间隔
refresh_password: password #手动清理缓存密码

View File

@ -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"`