feat(middle-msg): update lru msg

This commit is contained in:
HuangJiaLuo 2021-10-11 19:02:01 +08:00
parent 922fae0f78
commit b39899e5d6
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@ package middle_msg
import "time" import "time"
var ( var (
EventNameLog = "logcontext" EventNameLog = "log-context"
) )
type LogContext struct { type LogContext struct {

View File

@ -1,3 +1,14 @@
package middle_msg package middle_msg
import "time"
var LruCleanContextName = "lru-clean-context"
type LruCleanContext struct {
Keys []string
BeforeCleanSize int64
BehindCleanSize int64
StartTime time.Duration
EndTime time.Duration
}