This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeNode/internal/caches/item.go
T

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()
}