实现open file cache

This commit is contained in:
GoEdgeLab
2022-01-12 21:09:23 +08:00
parent bdbfc03ffe
commit 7b8e05b445
2 changed files with 24 additions and 1 deletions
@@ -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
}