Files
EdgeNode/internal/caches/item.go
2020-10-04 14:30:42 +08:00

15 lines
204 B
Go

package caches
import "time"
type Item struct {
Key string
ExpiredAt int64
ValueSize int64
Size int64
}
func (this *Item) IsExpired() bool {
return this.ExpiredAt < time.Now().Unix()
}