forked from p93542168/wheat-cache
feat(middle-msg): update lru msg
This commit is contained in:
parent
922fae0f78
commit
b39899e5d6
|
@ -3,7 +3,7 @@ package middle_msg
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
EventNameLog = "logcontext"
|
EventNameLog = "log-context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LogContext struct {
|
type LogContext struct {
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue