Files
EdgeAdmin/internal/ttlcache/option.go

21 lines
317 B
Go
Raw Permalink Normal View History

2020-12-02 16:09:23 +08:00
package ttlcache
type OptionInterface interface {
}
type PiecesOption struct {
Count int
}
func NewPiecesOption(count int) *PiecesOption {
return &PiecesOption{Count: count}
}
type MaxItemsOption struct {
Count int
}
func NewMaxItemsOption(count int) *MaxItemsOption {
return &MaxItemsOption{Count: count}
}