🐛 配置名
This commit is contained in:
@ -11,7 +11,7 @@ server:
|
|||||||
search: true #是否开启搜索接口,开启搜索之后密码和根目录都会失效,所以前端暂时不做搜索
|
search: true #是否开启搜索接口,开启搜索之后密码和根目录都会失效,所以前端暂时不做搜索
|
||||||
static: dist #前端文件目录
|
static: dist #前端文件目录
|
||||||
cache:
|
cache:
|
||||||
cache: true #是否开启缓存
|
enable: true #是否开启缓存
|
||||||
expiration: 5 #缓存失效时间(单位:分钟)
|
expiration: 5 #缓存失效时间(单位:分钟)
|
||||||
cleanup_interval: 10 #清理失效缓存间隔
|
cleanup_interval: 10 #清理失效缓存间隔
|
||||||
refresh_password: password #手动清理缓存密码
|
refresh_password: password #手动清理缓存密码
|
||||||
|
@ -16,7 +16,7 @@ type Config struct {
|
|||||||
Static string `yaml:"static"`
|
Static string `yaml:"static"`
|
||||||
} `yaml:"server"`
|
} `yaml:"server"`
|
||||||
Cache struct{
|
Cache struct{
|
||||||
Enable bool `yaml:"cache"`
|
Enable bool `yaml:"enable"`
|
||||||
Expiration int `yaml:"expiration"`
|
Expiration int `yaml:"expiration"`
|
||||||
CleanupInterval int `yaml:"cleanup_interval"`
|
CleanupInterval int `yaml:"cleanup_interval"`
|
||||||
RefreshPassword string `yaml:"refresh_password"`
|
RefreshPassword string `yaml:"refresh_password"`
|
||||||
|
Reference in New Issue
Block a user