wheat-cache/pkg/middle-msg/lru.go

22 lines
347 B
Go
Raw Normal View History

package middlemsg
2021-10-10 20:53:34 +08:00
2021-10-11 19:02:01 +08:00
import "time"
2021-10-10 20:53:34 +08:00
2021-10-12 15:11:30 +08:00
const LruCleanContextName = "lru-clean-context"
2021-10-11 19:02:01 +08:00
type LruCleanContext struct {
Keys []string
BeforeCleanSize int64
BehindCleanSize int64
2021-10-12 15:11:30 +08:00
StartTime time.Time
EndTime time.Time
}
const LruTTlContextName = "lru-ttl-context"
type LruTTlContext struct {
Keys []string
CleanTime time.Time
2021-10-11 19:02:01 +08:00
}