mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-12 17:55:38 +08:00
实现open file cache
This commit is contained in:
15
pkg/serverconfigs/open_file_cache_config.go
Normal file
15
pkg/serverconfigs/open_file_cache_config.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package serverconfigs
|
||||
|
||||
const DefaultOpenFileCacheMax = 1024
|
||||
|
||||
// OpenFileCacheConfig open file cache配置
|
||||
type OpenFileCacheConfig struct {
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
Max int `yaml:"max" json:"max"`
|
||||
}
|
||||
|
||||
func (this *OpenFileCacheConfig) Init() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user