实现open file cache

This commit is contained in:
刘祥超
2022-01-12 21:09:23 +08:00
parent fa4ba857bd
commit 89e8ef41fc
2 changed files with 24 additions and 1 deletions

View 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
}