2021-10-16 23:25:34 +08:00
|
|
|
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
|
|
|
}
|