Files
EdgeNode/internal/caches/item.go

15 lines
204 B
Go
Raw Normal View History

2020-10-04 14:30:42 +08:00
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()
}