fix memory cache.

This commit is contained in:
2026-04-08 20:54:32 +08:00
parent f8f647c12a
commit ffa4a64107
3 changed files with 18 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
package conf
import "git.apinb.com/bsm-sdk/core/vars"
import (
"git.apinb.com/bsm-sdk/core/vars"
)
type Base struct {
Service string `yaml:"Service"` // 服务名称
@@ -93,3 +95,8 @@ type LogConf struct {
File bool `yaml:"File"`
Remote bool `yaml:"Remote"`
}
type MemoryCacheConf struct {
DefaultExpiration int `yaml:"DefaultExpiration"`
CleanupInterval int `yaml:"CleanupInterval"`
}