Documentation ¶
Index ¶
- type ArcItem
- type ArcList
- func (al *ArcList) Has(key interface{}) bool
- func (al *ArcList) Len() int
- func (al *ArcList) Lookup(key interface{}) *list.Element
- func (al *ArcList) MoveToFront(elt *list.Element)
- func (al *ArcList) PushFront(key interface{})
- func (al *ArcList) Remove(key interface{}, elt *list.Element)
- func (al *ArcList) RemoveTail() interface{}
- type FIFOItem
- type LfuItem
- type LruItem
- type SimpleItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArcList ¶ added in v1.0.2
type ArcList struct {
// contains filtered or unexported fields
}
func NewARCList ¶ added in v1.0.2
func NewARCList() *ArcList
func (*ArcList) MoveToFront ¶ added in v1.0.2
Move item to front
func (*ArcList) PushFront ¶ added in v1.0.2
func (al *ArcList) PushFront(key interface{})
push item to front
func (*ArcList) RemoveTail ¶ added in v1.0.2
func (al *ArcList) RemoveTail() interface{}
delete last
type LfuItem ¶
type SimpleItem ¶ added in v1.0.2
func (*SimpleItem) Expire ¶ added in v1.0.2
func (it *SimpleItem) Expire() *time.Time
Click to show internal directories.
Click to hide internal directories.